But I get error’s in my loop and I cannot figure it out where it is. I have also read the documentation about loops but still can’t figure out where it goes wrong.
In the loop I want only the identity ID’s going inside the loop to have less data. How can I do this?
Also with those identity ID’s I want to do some search actions. Where I have the following code in the request Body, is that loop.loopinput.id correct?
I replicated some of your steps like get list of identies, loop and do a search with the same query I am able to get the identity id inside the loop and able to do a search to find disabled accounts. can you make sure you are passing exactly like this in your search http operation inside the loop
One suggestion here in your get list of identities you can also use a query to fetch identities with disabled accounts using this query. This will allow you to get only identities that has disabled accounts and you can narrow down your list of identities
},
"loop": {
"loopOutput": {
"failureItems": [
{
"errorMessage": "task failed: activity error (type: sp:email:send:v2, scheduledEventID: 29, startedEventID: 30, identity: 1@sp-workflow-worker-stg-eu-central-1-7d9ffd945c-kx2sc@sp-workflow-engine): unable to send email: request failed (type: Bad Request, retryable: false): 400 - 400 Bad Request (type: HTTP Response Returned a Client Error, retryable: false): request failed (type: Bad Request, retryable: false): 400 - 400 Bad Request (type: fundamental, retryable: true)",
"payload": null
},
And this 7 times, because 7 identities came into the loop.
It looked to me it’s in the send email function. But that thing is very basic and have done nothing weird in it, and used it the same as in my other workflows.