Power automate tutorial Variables in power automate flow | Initialize variable | append variable

Sdílet
Vložit
  • čas přidán 12. 07. 2024
  • Power automate tutorial Variables in power automate flow | Initialize variable | append variable
    Welcome back in microsoft power automate tutorial.
    In this video we will learn about variables in power automate.
    How to create and work with variables to store values in your flows.
    For example, variables can help you track how many times a loop runs so, that further you can use this variable as an index number to find out specific element of an array.
    There are total 6 types of variables you can create in power automate
    • Integer
    • Float
    • Boolean
    • String
    • Array
    • Object
    Now one quick query, where variables are useful?
    • You can use variable to Increase or decrease the variable by a constant value, also known as increment and decrement.
    • Assign a different value to the variable.
    • Insert or append the variable's value as the last item in a string or array and in many more cases. Variables are very useful.
    Always remember scope of a variable in power automate is global.
    Also, they persist across any loop iterations inside the flow.
    To find variable head there are two ways.
    first, you can navigate to built-in tab and you can find here.
    second, you can search in the search box.
    Now the first action is Initialize variable.
    Initialize variable action is used to create a variable and declare its data type and initial value - all within one action in your flow.
    Remember, you can only declare variables at the global level, not within scopes, conditions, and loops.
    Provide the required information of your variable - Name, type and default value if required.
    Note: one thing that Initialize action can create one variable at a time if you want to create more variables than add new initialize action.
    After creating and assigning some values now how you can get value from your variable.
    To get values from a variable there are two ways.
    click where you want to get variable value and go the dynamic content you can find all your cariables from here and can select as per requirement.
    Second method, you can retrieve using the variable function. For example, Naigate to expression tab and type: variables (‘name of your variable’).
    Next is, Increment/decrement variable action
    If you want to increment/ decrement a variable by a constant value, add the Increment variable action to your flow.
    Select increment action and provide the required information.
    Increment action is generally used to count the number of items in a collection or how many times a loop executes.
    let me show you, add get items action to retrieve some data from SharePoint list and will count the number of new hires in our list and further will send data to HR manager.
    Next, Set a variable action
    This action is used when you want to assign a different value to an existing variable
    Next, Append to variable
    Variables that store strings or arrays, you can insert or append a new value as the last item in those strings or arrays variables.
    Let me show you, let say we want create a string of email Ids to HR manager.
    just like this we can use array append variable.
    So, this is all about variables in power automate. Hope this information was sufficient to start working with variables in power automate.
    In the end of power automate tutorial for beginners series you will have good understanding of the power platform flow.
    Please subscribe the channel that really motivates.
    See you in next video!
    Power Automate HTML Table Formatting and include it in the Email
    • Power Automate HTML Ta...
    Basics of power automate: Introduction
    • Power automate tutoria...
    Left hand Navigation Components
    • Exploring Power Automa...
    Action level operation - add action | configure run after and more
    • Power automate tutoria...
    Build you first flow | notify when a document is uploaded on onedrive for business
    • Create Your Initial Po...
    Power Automate tutorial for beginners
    • Power automate tutoria...
    Submit you queries:
    forms.gle/xkFd9SF8VJda7j938
    #powerautomate #basics #tutorial #variable
  • Věda a technologie

Komentáře • 15

  • @a1t0rmenta
    @a1t0rmenta Před 11 měsíci +1

    Thank you! Very helpful 🎉

  • @rehimaahmed4119
    @rehimaahmed4119 Před 5 měsíci

    Thank you, so much

  • @premsaini4289
    @premsaini4289 Před 11 měsíci

    Thank you for this amazing video. Can we provide sharepoint site address through variable?

    • @corporateprogramming
      @corporateprogramming  Před 11 měsíci

      Thank you for the feedback! Yes you can using initialise variable action.

  • @chhayagupta5203
    @chhayagupta5203 Před 2 lety

    Im first time working on Ms flows, I can't find dynamic add button in the box. I want to remove last comma from the appended string. Please help me

    • @corporateprogramming
      @corporateprogramming  Před 2 lety +1

      You could remove last comma from a string using below string function:
      Left(Your variable name, Len(Your variable name)-2)

  • @dennisjohnson9753
    @dennisjohnson9753 Před 2 lety

    I have a string variable of names in a list - how do I get the same name to only show once - not for every time it show in the list.

    • @corporateprogramming
      @corporateprogramming  Před 2 lety +1

      You can use “doesn’t contain” clause for the incoming name in condition before appending it to string variable.

  • @draco3097
    @draco3097 Před 4 měsíci

    I need help and appreciate any advice.
    The scenario is, I may receive many emails (200-300) in a day. I would like to summarize the total occurrences on some of the contents and then trigger an automation email to me.
    For example :
    I received 200 emails today, 40 emails with the word Apple, 60 emails with the word Orange and the remaining Banana
    So I need to work a power automated script that can do a summary with every 24 hours and summarize the total occurrences of these words. Then initial and notification email to me for acknowledgment.

    • @corporateprogramming
      @corporateprogramming  Před 4 měsíci +1

      Uploaded a video to guide step by step: Master Outlook Inbox: Automate Email Summaries with Power Automate #Tutorial #Productivity
      czcams.com/video/F7vmWg_sMis/video.html

    • @draco3097
      @draco3097 Před 4 měsíci

      @@corporateprogramming Thank you very much

    • @draco3097
      @draco3097 Před 4 měsíci

      @@corporateprogramming I have watched your excellent guidance video and truly appreciate your time and expertise. It helps me, but I am at a beginner level in Power Automation, I need some time to digest, explore, and try it. I will keep you posted on my results.

    • @corporateprogramming
      @corporateprogramming  Před 4 měsíci

      Sure