This is a topic in Highrise API

Update People not updating

 
Avatar Reaction 25 posts

We have been having a problem w/ the Update People call.

Does not work:
<phone-numbers>
<phone-number> <id type="integer">1</id>
<number>303-555-1212</number>
<location>Work</location>
</phone-number>
</phone-numbers>

Does not work:
<phone-numbers>
<phone-number> <id type="integer">5502737</id>
<number>303-555-1212</number>
<location>Work</location>
</phone-number>
</phone-numbers>

If we change the name, company, etc, those work fine. If we leave out the <id type="integer"> we just get a duplicate entry.

(I tried to format the code better but it kept getting fixed after submit)

 
Avatar Reaction 25 posts

Are there any thoughts on why this isn’t working?

We are putting the finishing touches on a commercial real estate site for a few thousand users that will be upselling Highrise, but only if we can get this interaction working. It is meant to be a solution for brokers who do not have an existing contact database system.

 
Avatar Garry Robinson 106 posts

Same problem, updating a person using a Put always adds items inside <contact-data> email addresses etc, it doesnt change what is there, here is a full xml for put

objSvrHTTP.Open "PUT", txtURL & "/people/" & Trim(txtPersonId), False, CStr(txtUserName), CStr(txtPassword)
objSvrHTTP.setRequestHeader "Accept", "application/xml" 
objSvrHTTP.setRequestHeader "Content-Type", "application/xml"
<person> <first-name>AAAA</first-name> <last-name>Pavo</last-name><title></title><company-name>Albatros</company-name><background></background> <contact-data> <email-addresses> <email-address>
Garry@xxxxxxx.com
<location>Work</location> </email-address> </email-addresses> <phone-numbers> <phone-number> <number>02 9666 552222 </number> <location>Work</location> </phone-number> <phone-number> <number>0412 3445 33333</number> <location>Mobile</location> </phone-number> </phone-numbers> </contact-data></person>

I would like to get this working properly for my highrise api article at
http://www.databasejournal.com/features/msaccess/article.php/3745456

 
Avatar Jim Mosier 4 posts

Hi,

I am having the exact same problem. Have either of you found a solution?

Thank you.

Signup or login to post a reply.