Loop logic in workflow

Hi All,

I am trying to compare two timestamps value inside the loop
Variable A - timestamp coming from http response inside the loop
$.loop.loopInput.hTTPRequest1.body[*].attributes[“msDS-XXXX”]
Variable B - date outside the loop defined by some variable.

HTTPRequest1 if working as expected and giving response however I am unable to fetch & filter the response into compare string.

Any suggestions how to filter the response inside loop?

You cannot not access from inside a loop the items outside, but loop input and context. If you are not using the context field now, assign the variable to it and refer to context instead of the variable that is outside.
If you are already using the context field for something else, you will have to move the define variable to inside the loop

Actions inside a loop doesn`t need $.loop.loopInput. unless you are using data from the input!!

$.hTTPRequest1.body[*].attributes[\“msDS-XXX\“] should work

In this workflow i have a get identity inside the loop and as you can see i just use $.getIdentity2.managerRef.id to get data from that action.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.