Hi
I'm trying to populate a list of Requested participants using an automation via JSON.
Here is the JSON:
{
"requestParticipants": [{{#application."System Admins"}}"{{accountId}}"{{^last}},{{/}}{{/}}]
}
The field "application" is a variable that contains all the objects based on a search criteria. There is an attribute called "System Admins" that contains all the system administrators that need to be added to "Requested participants"
The log output of the JSON I believes comes out ok:
{ "requestParticipants": ["712020:91454231-274b-495b-95b1-0a18dc7fa495","63bdd85c0913ada386aa9b13","712020:12bae45b-926b-47e6-a992-fe85b904c3b0"] } | |||||
But the "Request Participants" field is still blank. Any pointers are appreciated. Thanks |
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
You note using a variable. If that is a Created Variable, those are text and have no structure to process as a list, JSON, etc.
If the value is just a list, you could try using the split() function before iterating it.
If the value is JSON as text, you could try converting it to JSON before accessing the attributes with the jsonStringToObject() function, and then iterate.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.