Stange value in udef fields in SOD online

lock
push_pin
done
Answered
2

When I get the udef fields for an appointment, a stange value is in the list:

Map appUdefs = appEntity.GetUserDefinedFields();
 
The result in debug: GetUserDefinedFields(): "["SuperOffice:6=False","SuperOffice:6:Displa...=[SR_NO]"]" (Map)
 
And this makes it imposible to set the value, it is ignored if I try to set the value for "SuperOffice:6" to "1".
 
What is wrong here? Why is the SuperOffice:6 repeated and with the :Displa... after it?

14 Nov 2024 | 09:53 AM

All Replies (2)

:DisplayText is the user visible representation of the value set on the UD field (so in case of a list, the list item name, for example). That has been included in the UserDefinedFields dictonary for a while.

Note: You should be using GetCustomFields(), the dictionary that contains both CRM UD fields and Service extra fields, the values in that dictionary take priority over UserDefinedFields.

15 Nov 2024 | 09:24 AM

Unfortunately the API's pollute some response data with properties containing a second colon in the name for the SuperOffice web client purposes only.

These can be safely ignored.

To set the custom object field, use the "SuperOffice:6" property only.  

The following should be ignored:

{PropertyName}:DisplayText
{PropertyName}:DisplayTooltip

Sorry for the inconvenience. 

 

15 Nov 2024 | 12:43 PM

Add reply