Forum Discussion
DougHenning1
3 years agoCommunity Manager
You can use the Regex channel to create a list of objects to iterate:
Then you can add a loop to check each one. Since each "group_0" in the match is a string representation of an object, you can reference any of it's properties. For example, to get the id, convert the string to an object then reference the property: {{ (b.group_0|from_json)['@id'] }}
If you want to filter out certain roles just put the filtering logic in the jinja for step B to exclude adding to the list.
Hope that's helpful! ​
------------------------------
Doug Henning
------------------------------
Then you can add a loop to check each one. Since each "group_0" in the match is a string representation of an object, you can reference any of it's properties. For example, to get the id, convert the string to an object then reference the property: {{ (b.group_0|from_json)['@id'] }}
If you want to filter out certain roles just put the filtering logic in the jinja for step B to exclude adding to the list.
Hope that's helpful! ​
------------------------------
Doug Henning
------------------------------