I have a loop in the logic app to go through a list of users received from an HTTP request
I have a variable to save a number of entries in SharePoint set to 0
Inside the loop, I query the SharePoint site to check if the user exists in the SP list for today and count the number of entries returned
Save the number of entries in the variable inside the loop
Now in the same loop, I check if the number of entries is 0, which means the user does not exist in the SP list and I add the user to the SP list
if the number of entries is not equal to 0 I do nothing.
first time in a day when I run the logic It all the users to the SP list
the second time when I run it, it never add the missing users to the SP list even though the SP list count for that user returned as 0.
Condition failing every time.
Describe the Bug with repro steps
I have a loop in the logic app to go through a list of users received from an HTTP request I have a variable to save a number of entries in SharePoint set to 0 Inside the loop, I query the SharePoint site to check if the user exists in the SP list for today and count the number of entries returned Save the number of entries in the variable inside the loop Now in the same loop, I check if the number of entries is 0, which means the user does not exist in the SP list and I add the user to the SP list if the number of entries is not equal to 0 I do nothing.
first time in a day when I run the logic It all the users to the SP list the second time when I run it, it never add the missing users to the SP list even though the SP list count for that user returned as 0. Condition failing every time.
What type of Logic App Is this happening in?
Consumption (Portal)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
No
Workflow JSON
Screenshots or Videos
No response
Browser
Chrome
Additional context
No response