Forum Discussion
endor_force
2 years agoNew Contributor III
You can do it in mapper by using this code, which probably can be partially or fully moved in to an expression library function also with some tinkering.
If the document has PickListItems
Then Filter out the element where CustomFieldPickListItemID is = to $Value of the document, returns the first found value of $PickListItems.Value found.
If it does not have PickListItems it returns empty string
$.hasPath("PickListItems") ? ($PickListItems.filter((PickListItem) => PickListItem.CustomFieldPickListItemID== $Value ))[0].Value : ''