Friday, May 24, 2019

Standard field not available in older WSDL

Some standard fields are not available in older WSDLs but custom ones are. One way to resolve this is to create a custom field that acts as a copy of the standard field.

-This will not work with multiple select type fields.
-For fields that are of type List/Record this will return the name and not the internal id

1. Create a new field of type Free-Form Text on the record.
2. Uncheck Store Value.
3. In the Validation & Defaulting tab set the Default Value field to be a formula and set the field to be the one that should be accessible via Web Services.
4. Give the field a unique name and save. If desired the field can have its Display Type set to Hidden in the Display tab so that it doesn't show up in the UI.

No comments:

Post a Comment