Until Loop does not actually loop

Brion 1 Reputation point
2022-01-22T01:19:32.697+00:00

I am following this tutorial here https://willpage.dev/2020/05/26/handling-pagination-with-the-ms-graph-api-in-logic-apps-and-power-automate/ doing the exact same thing. The only addition is that I am getting an array of SKUs (MS Product IDs) then going 1 at a time looking for all users who have that SKU. Many of the MS Graph API calls will return more then 1000 objects so I use a loop and change the API link to the next odata.nextLink.

My until loop is simple till a variable is set to TRUE. Per screenshot below. However in several test it only runs once and stops. Even though you can see a check for FALSE is the only way the variable can be set to true. Yet the Until never loops. Anyone have any ideas as to maybe why?
167401-image.png

167354-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2022-01-24T05:47:29.53+00:00

    @Brion This is likely because the loopDone variable is already set to true before the loop starts in your workflow

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.