Workflow Get List of Identities (action)

Hello Everyone,

We have implemented a workflow whose trigger is “Scheduled Trigger” and get list of identities based on search query.
Next step is loop

This is taking all the account id that user has. Can someone help us to only loop id’s of sourceName=“cais_temp_account_creation delimited”.

Thank You!

Hi @karishma_shaik2,

Try something as below:

$.getListOfIdentities.identities[*].accounts[?(@.source.name=='cais_temp_account_creation delimited')].id

1 Like

There is another way : For the “Get List of Identities” action, choose the “Find Identity By” search using the search query for source name as the required source name.

4 Likes

I agree with @shaileeM this is by far the easiest and most efficient way to achieve this.

Similar to this we have implemented another workflow with Get list of identities with search query . Next step we have taken loop and given input as

$.getListOfIdentities.identities[*].accounts[?(@.source.name=='XXX')][*].courseId[*]

(Here courseId is multi valued)
this is giving loop input as
"input": [ [ "3f90e852-9492-4ef4-ae2b-b2dcfa8cxxxx" ], [ "9ab53c77-f3fe-4140-9e8c-f12ccb6xxxx", "b063b773-2992-406f-92df-b2d2a9xxxx" ] ],

In Http request we are assigning $.loop.loopInput to one attribute.
In Loop input we have two arrays, one array with single id is passing but second array with two id’s is giving unexpected json error. Could someone please tell how to rectify this

@karishma_shaik2 : I am not sure about your complete use case here but the loop operation in workflow has a limitation of 100. consider this limitation.