Hi, can you give me the field to save the person.more (the Sonstiges) in the Tab more.
I brought this to save some information in this feld
All Replies (2)
Hi,
You can update a person's custom fields using the prog id of the field:
Sample:
#setLanguageLevel 4;
Integer personIdToUpdate = 1234;
String fieldToUpdateProgId = "SuperOffice:1234";
NSPersonAgent personAgent;
NSPersonEntity personEntity = personAgent.GetPersonEntity(personIdToUpdate);
Map personCustomFields = personEntity.GetCustomFields();
personCustomFields.insert(fieldToUpdateProgId, "value");
personEntity.SetCustomFields(personCustomFields);
personEntity = personAgent.SavePersonEntity(personEntity);
6 Jul 2023 | 09:46 AM
Thanks David
the PersonAgent and PersonEntity are the right way.
Thanks
6 Jul 2023 | 09:58 AM
Add reply
info
Please log in to post a reply.