ruby gem should show custom properties for contacts

RaviDesai
Member

Please see the following console output.  I'm able to update a bookingscount property for contact 3501, but when I retrieve the contact, I'm not able to see the new value.

 

When I view the contact's properties using the website, I can see that the new value "1" is successfully written.

 

How do I see the bookingscount and referralcount for a particular contact, using the official ruby gem?

 

---

irb(main):019:0> pp LfHubspot.increment_booking_count(3501)
ETHON: performed EASY effective_url=https://api.hubapi.com/crm/v3/objects/contacts/3501?hapikey=HIDDEN response_code=200 return_code=ok total_time=0.204447
ETHON: performed EASY effective_url=https://api.hubapi.com/crm/v3/objects/contacts/3501?hapikey=HIDDEN response_code=200 return_code=ok total_time=0.16749
#<Hubspot::Crm::Contacts::SimplePublicObject:0x000055b5ff8ee918
@archived=false,
@created_at=Tue, 13 Apr 2021 16:00:18 +0000,
@id="3501",
@properties=
{"bookingscount"=>"1", "lastmodifieddate"=>"2021-04-13T17:22:00.640Z"},
@updated_at=Tue, 13 Apr 2021 17:22:00 +0000>
=> #<Hubspot::Crm::Contacts::SimplePublicObject:0x000055b5ff8ee918 @id="3501", @properties={"bookingscount"=>"1", "lastmodifieddate"=>"2021-04-13T17:22:00.640Z"}, @created_at=Tue, 13 Apr 2021 16:00:18 +0000, @updated_at=Tue, 13 Apr 2021 17:22:00 +0000, @archived=false>
irb(main):020:0> pp LfHubspot.get_contact(3501)
ETHON: performed EASY effective_url=https://api.hubapi.com/crm/v3/objects/contacts/3501?hapikey=HIDDEN response_code=200 return_code=ok total_time=0.135976
#<Hubspot::Crm::Contacts::SimplePublicObject:0x000055b601025e10
@archived=false,
@created_at=Tue, 13 Apr 2021 16:00:18 +0000,
@id="3501",
@properties=
{"createdate"=>"2021-04-13T16:00:18.013Z",
"email"=>"103@example.com",
"firstname"=>"Kyle",
"hs_object_id"=>"3501",
"lastmodifieddate"=>"2021-04-13T17:22:00.640Z",
"lastname"=>"McVittie"},
@updated_at=Tue, 13 Apr 2021 17:22:00 +0000>
=> #<Hubspot::Crm::Contacts::SimplePublicObject:0x000055b601025e10 @id="3501", @properties={"createdate"=>"2021-04-13T16:00:18.013Z", "email"=>"103@example.com", "firstname"=>"Kyle", "hs_object_id"=>"3501", "lastmodifieddate"=>"2021-04-13T17:22:00.640Z", "lastname"=>"McVittie"}, @created_at=Tue, 13 Apr 2021 16:00:18 +0000, @updated_at=Tue, 13 Apr 2021 17:22:00 +0000, @archived=false>

---

0 Upvotes
2 Replies 2
dennisedson
Community Manager

Adding some fellow ruby devs to this thread to see if we can get some assistance 😀

@patrickemuller , @GaryElliott , @altjx , @BrianShowplace  can any of you lend a hand here 🙏

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
RaviDesai
Member

Is the official stance to just not use the official ruby gem?  The support on the main website aren't helping; they just sent me over here.

0 Upvotes