You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have a routine in my project that is attempting to modify the value of a specific a PersonCustomField. The value associated with the key I need updating is a string, however. Looking at the available functionality, it appears as if I can only set the value to be a numeric datatype. Unless I'm missing something in my logic. Sample code below.
var personFields = person.CustomFields;
var personField = new PersonCustomField();
personField.Value = Convert.ToInt32(armsId); // Required, although I need to pass my armsId in a string datatype.
person.CustomFields[armsIdFieldKey] = personField;
Any suggestions as to how I best handle this? Ultimately it would be best if I could define the datatype when I am initializing the new PersonCustomField. But I didn't see how to do this.
The text was updated successfully, but these errors were encountered:
When you want to update a custom field which is a person or an organization, you have to pass the ID when you want to update it. See the example below:
vartestDeal=awaitclient.Deal.Get(1);varpersonField=testDeal.CustomFields["hashOfMyCustomField"];// null or PersonCustomFieldvardealToUpdate=testDeal.ToUpdate();dealToUpdate.CustomFields["hashOfMyCustomField"]=newLongCustomField(627);awaitclient.Deal.Edit(testDeal.Id,dealToUpdate);
So I have a routine in my project that is attempting to modify the value of a specific a PersonCustomField. The value associated with the key I need updating is a string, however. Looking at the available functionality, it appears as if I can only set the value to be a numeric datatype. Unless I'm missing something in my logic. Sample code below.
Any suggestions as to how I best handle this? Ultimately it would be best if I could define the datatype when I am initializing the new PersonCustomField. But I didn't see how to do this.
The text was updated successfully, but these errors were encountered: