Power Automate compose vs variable

 

VariableCompose
Variables hold different types of data types like string, boolean array, etc, to validate what we give in terms of our data. If the data doesn’t match the data types it will give an error.Compose action is typeless, which means it is very flexible, we can provide any type of data(we can give XML, JSON, etc) as an input.
Variables can be set many times, which means we can set it, reset it at any point of our flow, as per our requirement.Compose only set once, which means compose doesn’t have the update function
It can be grouped together under the variable heading, which means when we access the variable from the dynamic content. It was very clearly visible in the dynamic content because we can see the name of a variable, and also make it easy to identify what the variable is in dynamic content and what variable I want to use.Compose are not grouped, which means we give some data as input and it will return some data as output. So in dynamic content, we can only identify the output as the name of the compose action itself.
Variables need to be initialized, while initializing we need to give name, type, and initial value. When we initialize a variable, the initialize variable action can’t declare within the scope, and it is generally declared in the top level of the flow.Compose can be created anywhere in the flow, it can be created inside the scope or at any point throughout the flow

Comments

Popular posts from this blog

Update record when checkbox checked using JavaScript and save d365

Power pages custom button add in gried