Forum Discussion
alex_panganiban
7 years agoContributor
okay, i’ll try that out.
How are $PickListItems and PickListItem defined? Would that need to be done in separate mapper?
if $CustomFields is defined as the array above, I had to use two mappers:
One to get the value and one to get the field itself (item in the custom fields array):
$servicesizefield: jsonPath($, "CustomFields[*]").find(x=>x.FieldName=="ServiceTypeSize") $servicesizevalueid: jsonPath($, "CustomFields[*]").find(x=>x.FieldName=="ServiceTypeSize").Value
then
jsonPath($,"$servicesizefield.PickListItems[*]").find(x=>x.CustomFieldPickListItemID==$servicesizevalueid).Value
to get the actual value at that id.
How would I adapt that to expression library as jsonpath doesn't seem to work at all?