Saving Contact Attributes Modifications

Interested in talking about Mash-up's? This is the place.
Post Reply
Ltbpv
Posts: 4
Joined: Mon Jan 25, 2021 6:25 pm

Saving Contact Attributes Modifications

Post by Ltbpv »

Good afternoon,

I was wondering how could I change the attributes of a Zimbra Contact (name, email, birthday, notes etc...) and save these changes made through a Zimlet. I tried the method ZmContact.setAttr(attribute, value) - which modifies the chosen attribute to the "value" given in the code - but after refreshing, it doesn't keep in mind the changes.

Does anyone know how to save changes made by setAttr in a zimlet code ?

Regards,
Léo P-V
Damini Vashishtha
Zimbra Employee
Zimbra Employee
Posts: 32
Joined: Tue Oct 18, 2022 12:16 pm

Re: Saving Contact Attributes Modifications

Post by Damini Vashishtha »

On save, call api to create or modify contact. Please refer below links for api call:

To modify contact: https://files.zimbra.com/docs/soap_api/ ... ntact.html
To create contact: https://files.zimbra.com/docs/soap_api/ ... ntact.html


Zimbra api documentation https://files.zimbra.com/docs/soap_api/ ... index.html
Post Reply