Hello
I am trying to make api call (JSON) through RESTAPI
I have retrieved all the custom fields and values by using:
Now I have the shortcode and name of the selected field
received from the above:
<customFields>
<cacheable>true</cacheable>
<dataLocale>default</dataLocale>
<entityDefinitionType>1</entityDefinitionType>
<id>221310</id>
<objectAvailable>true</objectAvailable>
<systemRecordFlag>false</systemRecordFlag>
<version>3</version>
<imageId>0</imageId>
<richRemarks/>
<customFieldShortCode>ENVIRONMENTS IMPACTED</customFieldShortCode>
<customLookupValueShortCode>4-PRODUCTION</customLookupValueShortCode>
<entityInstanceId>5005159</entityInstanceId>
<customFieldId>32986</customFieldId>
<customFieldType>6</customFieldType>
<singleSelectValue>
<entityDefinitionType>1</entityDefinitionType>
<id>1</id>
<objectAvailable>true</objectAvailable>
<name>Production</name>
<remarks></remarks>
<shortCode>4-PRODUCTION</shortCode>
<definitionStateGroupId>-1</definitionStateGroupId>
<parentWebCustomLookupDefinitionId>1</parentWebCustomLookupDefinitionId>
</singleSelectValue>
<customLookupValueId>1</customLookupValueId>
</customFields>
what I need to do I need to use the name rather than using the shortCode for “single select values” as the system I am integrating with is using the name only that shows for the users.
on my call to create the event
I have tried
“customLookupValuename”:”Production”
/
“customLookupValueName”:”Production”
but it didn’t work
I have also tried it this way but it didn’t work
{
"customFieldShortCode": "ENVIRONMENTS IMPACTED",
"customLookupValueId": { "resolvingParameters":
t
{
"name": "Production"
}
]
}
},
and
{
"customFieldShortCode": "ENVIRONMENTS IMPACTED",
"customLookupValueId": { "singleSelectValue":
n
{
"name": "Production"
}
]
}
},
I have checked assystWiki documentation as well but I couldn’t resolve it need your expertise :