Monday, January 21, 2019

Microsoft Flow increment local variable

Microsoft flow has made it easy to loop through records, but you have to keep the loop count by yourself in case you need to do manipulation based on counter. Here is how to do it.


  1. Initialize a variable by clicking:

    1. Inset a new step the (+) sign on line
    2. Add an action
    3. In the search bar write 'initialize variable', then select Initialize variable element from list
    4. Give your variable a logical name and select the variable type from drop down. You have to give a initializing value to your variable.
  2. Increment variable:
    1. Go to the loop where you want to increment variable
    2. Add an action
    3. In the search bar write 'increment variable', then select Increment variable element from list.

    4. From the drop down select your variable, and in the value add the to be incremented by value.
  3. Use the value in your operation:
    1. Click the field where you want you use the variable
    2.  Select your variable to use

Have a good day :)


No comments:

Post a Comment