Тёмный

Power Automate flow variables - How to use them 

Reza Dorrani
Подписаться 130 тыс.
Просмотров 72 тыс.
50% 1

In this video on Power Automate flow variables - How to use them, we will look at how we can reduce variables in our flows. The video covers initializing, setting, incrementing and appending data to variables.
Topics covered:
✔️ Using Variable of type Object
✔️ Expressions - setProperty, getProperty, add, union etc.
✔️ Incrementing values
✔️ Appending to array
✔️ Tips & Tricks
#FlowQuickTips #Flow #PowerAutomate #PowerApps #Variables

Опубликовано:

 

5 окт 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 172   
@tenisviejos
@tenisviejos 3 года назад
This is a godsend... Thanks a LOT for this. It's a brilliant approach to simplify so many big and complex existing flows we've at work. Thank you for sharing.
@RezaDorrani
@RezaDorrani 3 года назад
Thanks for watching. So happy to know this is useful.
@thatchercollin1508
@thatchercollin1508 2 года назад
i guess Im asking the wrong place but does someone know of a way to get back into an Instagram account..? I was stupid lost the password. I love any tricks you can offer me
@malcolmzaid2443
@malcolmzaid2443 2 года назад
@Thatcher Collin Instablaster :)
@edjk6278
@edjk6278 4 месяца назад
I’m not sure how often folks leave comments on videos that they’ve seen once and then gone back the video much later. This is one of those comments. I came across this when I first came across the power platform. I’ve never been a programmer or anything like that, and this particular video was way above my ability to comprehend at that time. Today, about two years later, I will use this as a best practice. I’m guessing when it comes to leveraging values using loops, I have some experimenting to do. But I should be able to leverage the item property to get this done. Although at this time, I cannot afford to become a member of your channel, I know what I know today because of you… Thanks mate!
@RezaDorrani
@RezaDorrani 4 месяца назад
You are most welcome
@Collinmcd87
@Collinmcd87 3 года назад
Reza, I love your channel man. Thank you for helping out the IT community. This would be very hard for me to pick up without your videos and initiative. Much respect.
@RezaDorrani
@RezaDorrani 3 года назад
Thank you so much for your kind words. I try my best to provide valuable content and it means a lot to get such feedback.
@gorgonhaas6429
@gorgonhaas6429 2 года назад
This is so helpful and time-saving - you point out the essentials and more in a very concise way. Thank you!
@RezaDorrani
@RezaDorrani 2 года назад
You are most welcome!
@edjk6278
@edjk6278 Год назад
You have inspired me to reshape my business by adding these technologies. Your lessons are very helpful. I’ve gotten myself in a bit too deep with a project for my number 1 client. I continue to search videos for answers to some of my new challenges. Nonetheless I always learn things from you. Thank You Reza
@RezaDorrani
@RezaDorrani Год назад
You are most welcome and thanks for watching and learning from my videos.
@dougydoe
@dougydoe 3 года назад
A great overview to using variables with expressions. Thanks for sharing.
@RezaDorrani
@RezaDorrani 3 года назад
Thanks for watching
@flipopperman8741
@flipopperman8741 3 года назад
Thanks a lot Reza, it is also a useful tutorial on how to update object properties and arrays elements in general. Thank you again for putting this together.
@RezaDorrani
@RezaDorrani 3 года назад
You are most welcome!
@travis570
@travis570 2 года назад
Reza, this video was brilliant! Thank you so much.
@RezaDorrani
@RezaDorrani 2 года назад
You are so welcome!
@berggrog1
@berggrog1 Год назад
Nice Explanation RD! Thank you for the video and tips
@RezaDorrani
@RezaDorrani Год назад
Welcome!
@AssassinUK
@AssassinUK 2 года назад
WOW .. Great video. Love how your flows work 1st time all the time! 😅
@RezaDorrani
@RezaDorrani 2 года назад
Thank you! Cheers!
@marciokataoka
@marciokataoka 3 года назад
Tips like these make our lives easier! ☺
@RezaDorrani
@RezaDorrani 3 года назад
Glad to hear that
@amywoodfin6195
@amywoodfin6195 3 года назад
Excellent, easy-to-follow instructions for someone that has been desperately trying to understand what variables are and what role they play in flows. Question - is there any way to hide the initial variables that you initialize so you just see the Compose? That would make it super clean! Regardless, I really appreciate your training style and info. On to your next tutorial. Cheers!
@RezaDorrani
@RezaDorrani 3 года назад
Thank you for the amazing feedback Amy. You cannot hide the actions inside flow. Hope you enjoy all the videos on this channel.
@hackcode8701
@hackcode8701 3 года назад
very interesting, thanks for share
@RezaDorrani
@RezaDorrani 3 года назад
Thanks for watching
@ammadkhan4687
@ammadkhan4687 2 года назад
This is Gold worth Information.. Saluting !!!
@RezaDorrani
@RezaDorrani 2 года назад
Thank You!
@GroovyMisfit
@GroovyMisfit 2 года назад
This is awesome. I watched this like 5 times. BTW, How did you do the magnifying glass? That was nice.
@RezaDorrani
@RezaDorrani 2 года назад
Thanks for watching so many times :) The magnifying is a feature of my software recording tool Camtasia.
@vedransehovic6321
@vedransehovic6321 2 года назад
This is fantastic, thank you Reza!
@RezaDorrani
@RezaDorrani 2 года назад
Most welcome!
@eddepacheco
@eddepacheco 2 месяца назад
Very helpful. Thank you.
@RezaDorrani
@RezaDorrani 2 месяца назад
Welcome
@areebasameen7832
@areebasameen7832 3 года назад
Thanx Reza for such a beautiful explanation.....
@RezaDorrani
@RezaDorrani 3 года назад
Glad it was helpful!
@LapaConsult_Ex_Macraris
@LapaConsult_Ex_Macraris 3 года назад
Thank you again for this video... as part of my learning I would like to do a similar video and publish it in Italian. Thank you!
@RezaDorrani
@RezaDorrani 3 года назад
Go for it!
@annettegarberina-woodall8758
Awesome job, you explain very well.
@RezaDorrani
@RezaDorrani Год назад
Thank you!
@mondlintuli221
@mondlintuli221 Год назад
This is very helpful thanks a lot Reza :)
@RezaDorrani
@RezaDorrani Год назад
Glad it was helpful!
@sokgat7019
@sokgat7019 3 года назад
Great idea. Love it !!!!
@RezaDorrani
@RezaDorrani 3 года назад
Thank you
@RezaDorrani
@RezaDorrani 3 года назад
Thank you
@ebogart42
@ebogart42 3 года назад
thanks - very informative!
@RezaDorrani
@RezaDorrani 3 года назад
Your welcome
@WorkProfileScot
@WorkProfileScot Год назад
Thanks so much for this, Reza! Running into a issue and hoping you can help. I have a variable called varProfile mimicking yours. I would like to use the compose function with the 'setProperty' expression. However, I would like it to compose two var's within the json of the variable, varProfile. For example, I would like it to set the "varApproverName" and "varApproverComments" within the variable varProfile. I am able to have it compose both of those but I can't get it to set both as it runs into an error of "The variable 'varProfile' of type 'Object' cannot be initialized or updated with value of type 'String'. The variable 'varProfile' only supports values of types 'Object'." Would I need to run the compose and set variable with the output twice for each value? Is it possible to do it in just one of each?
@RezaDorrani
@RezaDorrani Год назад
I have not come across this issue & hence not sure what the resolution is. Debugging issues here on chat is not a good option. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@rafianumrex6384
@rafianumrex6384 2 года назад
Hi @Reza... thanks for your videos... well I was curious if there are many variables in a flow can we store all of them in a single place(as we do to add all the related steps in scope), variables can not be added to scope.. so is there any why to place all in a single block.
@RezaDorrani
@RezaDorrani 2 года назад
Initialize variable actions cannot be in a scope.
@FairviewRCflier
@FairviewRCflier 24 дня назад
Wow! I’ll give this a try
@RezaDorrani
@RezaDorrani 24 дня назад
Give it a shot
@007lbp
@007lbp 2 года назад
Excelent content!! How to learn more about expressions in power automate ? Thanks and great job!
@RezaDorrani
@RezaDorrani 2 года назад
Thank You. For expressions check ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-O97IdCbfMQI.html
@cyriltresor3589
@cyriltresor3589 2 года назад
Thank you very much, thanks to your videos I have managed to set up a workflow that works correctly from a form to the sending of a summary email. But I still have an minor issue. I constructed a Likert-type form. And I would like to get in a variable only a certain type of value. For example. Question 1 Answer 1 Answer 2 Answer 3 My idea would be to have a variable that would store only the A3's to display in an email, but I'm interested in another idea. The long way would be to do it with conditions, but that's not very elegant when you have a lot of possibilities.
@RezaDorrani
@RezaDorrani 2 года назад
I do not have a video reference on this scenario and would have to try it out to provide guidance. I did videos with forms (might have included likert type). Check ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kbqXsKPTmZk.html & ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4eWGdi_C2hQ.html I would also recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@cyriltresor3589
@cyriltresor3589 2 года назад
@@RezaDorrani Thanks Reza, I will do
@sueamin2788
@sueamin2788 2 года назад
Hi Reza: Thank you for this very useful video. Also, do you have a video showing a variable holding all the items in the list having say color column = Purple? and then in the automate use that variable (selected records of the list) to do the next step like compare with another list or update it, etc. If so, can you please direct me to that link? Thanks again for your ingenuity in making things easier for all of us!
@RezaDorrani
@RezaDorrani 2 года назад
Thank You. I do not have a specific video on this use case. May be it was a part of one of my flow videos. I will recommend you check on the forums at powerusers.microsoft.com/
@josheroh4945
@josheroh4945 2 года назад
Thanks Reza! However, does anyone know if it is possible to set multiple properties of a variable at once?
@RezaDorrani
@RezaDorrani 2 года назад
Possible. I believe I have a sample flow on my GitHub repo that shows that. Check github.com/rdorrani/Microsoft-Flow/blob/master/Expressions401-ReducenumberofVariables-SaveAPICalls_20210211210303.zip
@sandrapalmer3572
@sandrapalmer3572 Год назад
Hi Reza, thank you for all your videos, they are really helpful and I have created many flows using your videos. Would you be able to do a demo of how I could create a Power Automate Flow to calculate the number of characters in a specific question response whenever a MS Form is submitted. Currently my flow takes the Form into a List and I would like a field in this list to detail that character count (which includes all words, spaces, puntuation etc in the count). Hope you can help. Many tahnks
@RezaDorrani
@RezaDorrani Год назад
I make videos when I get multiple requests on a topic. Each quarter, I ask for topic suggestions on "Community Tab" of my channel. Most voted ideas get added to backlog. The topic suggestion post is currently active.
@comprascbgolfe9191
@comprascbgolfe9191 3 года назад
Hi Reza! Do you have any video that instead of using hard coded schema receives variables informations like a json ou collection coming from powerapps? tks!
@RezaDorrani
@RezaDorrani 3 года назад
A lot of them. Check - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tQCBWMR7T64.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-r3UC3TMXhlI.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Da4do2DxmJE.html
@paolovr1970
@paolovr1970 Год назад
Thanks 🙏🙏🙏 very interesting Reza
@RezaDorrani
@RezaDorrani Год назад
Most welcome
@aamirghanchi9487
@aamirghanchi9487 5 месяцев назад
Thank you for theis great video! What about the Date/Time variables. I see them in the documentation for the desktop flow but not the cloud flows. I wanted to get the max and min of two dates but there is no straightforward way of doing it.
@RezaDorrani
@RezaDorrani 5 месяцев назад
I have not tried max and min for dates. Im sure there are expressions that can be framed for it. I would recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
@aamirghanchi9487
@aamirghanchi9487 5 месяцев назад
Thank you Reza! I've found a way to do it through ticks() 🙂
@MohammadAli-ts2ev
@MohammadAli-ts2ev 2 года назад
Hi Reza, Thank you for the informative video. I am about to be a power automate dev following your videos:) I am stuck to a place.. In Power automate/Flow, how can we set the value of any single cell (i.e cell A2) of a table (of Excel Online for Business) to a variable?
@RezaDorrani
@RezaDorrani 2 года назад
Thank You. I do not have a video based on your scenario. There is one on excel ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Kupz71dWYyY.html which may help. I will also recommend you check on the forums at powerusers.microsoft.com/
@jdkarns
@jdkarns 2 года назад
Thanks for the video! Question? So then what do you do with the JSON file you created? How do you use the file with all the variables in Power Automate?
@RezaDorrani
@RezaDorrani 2 года назад
It is not a file. It is just JSON data. You can use it across your flow as a variable and read data from within. You can also update its data in the flow. I uploaded a sample flow showcasing it on my GitHub repo github.com/rdorrani/Microsoft-Flow/blob/master/Expressions401-ReducenumberofVariables-SaveAPICalls_20210211210303.zip
@jdkarns
@jdkarns 2 года назад
@@RezaDorrani Thank you
@mocanada304
@mocanada304 9 месяцев назад
Hi Reza, Amazing videos as always. What would be the syntax for updating the array element within the object variable? and also the syntax from removing an array element within the object variable? Thank you,
@RezaDorrani
@RezaDorrani 9 месяцев назад
Thanks! I did this video a while ago and covered most scenarios. Not sure if this was covered or not. I do not know the syntax by heart. It would be best to check the documentation for the functions showcased in video.
@mocanada304
@mocanada304 9 месяцев назад
Hi again@@RezaDorrani, ChatGPT provides the following syntax. For updating. union(variables('yourArray'), { "index": 0, "value": 'new_value' }) and for removing. union(take(variables('yourArray'), indexOfElementToRemove), skip(variables('yourArray'), indexOfElementToRemove + 1)) Does it look ok to you? Thanks again,
@RezaDorrani
@RezaDorrani 9 месяцев назад
@@mocanada304 I cannot guess here on chat without reproducing the same on flow. Chat is pure text. Looks good - Yes but that may not be the best answer. I would recommend posting your query/issue with screenshots on the forums at powerusers.microsoft.com
@samfisherzz
@samfisherzz 11 месяцев назад
Hi Raza! I am new to Power Automate and have been learning from your videos. I am trying to send MS forms response to Sharepoint List. Some response questions have multiple choice, so I followed the popular method of initialize an array variable, remove extra symbols from Microsoft Forms string output, split the previous line into an array, append to array variable using a formula. It works perfectly, but now I have created multiple array variables for each multiple question in a single initiate variable action as you have described. How can I get the multiple choice response for each question from MS forms into its corresponding variable?
@RezaDorrani
@RezaDorrani 11 месяцев назад
I do not have a video reference on this specific scenario and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@ufffyegaane-onlyforyou9837
@ufffyegaane-onlyforyou9837 3 года назад
Really superb. Is there any help link available by Microsoft for those functions?
@RezaDorrani
@RezaDorrani 3 года назад
aka.ms/learnexpressions docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference
@wrmbanks2260
@wrmbanks2260 2 года назад
Really really helpful video. I'm curious though, is it possible that each time a row of data in sql has been created, that a flow can take that data and initialise a variable in another flow, using the same idea you've demonstrated here?
@RezaDorrani
@RezaDorrani 2 года назад
New row in SQL has a trigger in flow. Why would you want to initialize a variable in another flow? Why not the work done by the flow that gets triggered when new row is added in SQL?
@wrmbanks2260
@wrmbanks2260 2 года назад
@@RezaDorrani So i have several flows which need to be set up the way they are, as it's a multi-step process which requires retrieving data using one api feeding it into a sql table, then triggering another flow to retrieve further information from another site. Then the data I need for a third table is based upon a column from the first table. At the moment, I've manually inputted initialised/setup variables which the third table uses to insert a row, however for each new record that is added, a corresponding variable needs to be added to the third sql table to search.
@RezaDorrani
@RezaDorrani 2 года назад
@@wrmbanks2260 If you need to pass the value across flows, then you need to look into child flows. docs.microsoft.com/en-us/power-automate/create-child-flows
@wrmbanks2260
@wrmbanks2260 2 года назад
@@RezaDorrani Great thanks for the link! Looks to be what I need 🤞🏻
@raulmintz2682
@raulmintz2682 3 года назад
Excellent
@RezaDorrani
@RezaDorrani 3 года назад
Thank you
@robofski
@robofski 3 года назад
Genius!
@RezaDorrani
@RezaDorrani 3 года назад
Thank you Dan
@SirviscaSH
@SirviscaSH 2 года назад
👏👍
@RezaDorrani
@RezaDorrani 2 года назад
🙏
@BoyTukaness
@BoyTukaness 2 года назад
Hi Reza, do you have video wherein You copy the array values from one sharepoint to another? but instead of an array you convert it into a text value? Thanks in advance
@RezaDorrani
@RezaDorrani 2 года назад
I do not have a video on that. I would recommend to check on the forums at powerusers.microsoft.com
@arcusatmos6367
@arcusatmos6367 2 года назад
Nice video. It save my work. Can we get the json code from a file? thanks
@RezaDorrani
@RezaDorrani 2 года назад
Possible.
@kanwalsaini9717
@kanwalsaini9717 3 года назад
Hello rezza , Good morning . Hope you are doing good and staying safe. Wanted to check if there is another way to declare and initialize multiple variables in one place. Creating so many variables makes the flow design very bigger and fatterand wierd to read. I have one use case where i need to send emails to owners and admins to have right no of ownership for their sites . there will be scenarios like 0 SCA and 1 owner , then send email to owners , 1 SCA and 1 or more owners , send eamil to SCA. , like that for other more scenarios. as of now I created a flow with declaring 2 string variables for Owners and admins respectively . 4 array variables for owners to store the names of owners based on their count calculated using length function . Similarly 4 variables for admins doing the same thing. Then in apply to each loop I am applying conditions based on the count and appending it to respective array variables which would then be used to send emails to respective count owners (like 1 wale or 2 wale )in last step. then in another apply each same thing is designed for admins. now when I try to combine both the outputs in my final condition to send email then I am getting warning it should be part of parent for each . Is there another way to do so without creating so many variables doing above steps . I want to make my flow simpler .with my approach I am assuming it is becoming more complex
@RezaDorrani
@RezaDorrani 3 года назад
I would have to recreate your scenario to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
@smitty7326
@smitty7326 11 месяцев назад
any way to make these variables into global variables that can be used in PVA to carry information across multiple topics?
@RezaDorrani
@RezaDorrani 11 месяцев назад
I have done very little work with PVA so not sure. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@jaredwaterman5868
@jaredwaterman5868 2 года назад
Hi Reza, can you explain how to convert a SharePoint date (string: 2011/4/25) into a number format to update an Excel field value that won't accept a date in string format? Thanks!
@RezaDorrani
@RezaDorrani 2 года назад
You would need to use expressions. I will recommend you check on the forums at powerusers.microsoft.com/
@MrAlienw
@MrAlienw 7 месяцев назад
How do you update multiple values in the object? For me my object is with empty variables at first, but if I put multiple SetProperty, SetProperty etc in the Compose Input, I get multiple Outputs with only the associated variable updated
@RezaDorrani
@RezaDorrani 7 месяцев назад
The video is the best reference I have. I have not come across the mentioned issue and hence not sure what the cause could be. I recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
@vivekanandade7049
@vivekanandade7049 Год назад
Thanks Reza, This is very useful video and I am using the same approach in my tasks, However I am having query, how to update multiple properties. in your video you have demonstrate to update one property using setProperty however If I would like to update vName, vTitle and vCompany using one compose, is that possible?
@RezaDorrani
@RezaDorrani Год назад
By writing multiple expressions together. Possible!
@vivekanandade7049
@vivekanandade7049 Год назад
@@RezaDorrani I have tried with multiple setProperties in one compose however it is not when I try to set to variable, it is not working. Can you please help with any example with multiple property set. Thanks in advance.
@RezaDorrani
@RezaDorrani Год назад
@@vivekanandade7049 I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@arshad801
@arshad801 3 года назад
Awesome
@RezaDorrani
@RezaDorrani 3 года назад
Thanks
@sagar_s1412
@sagar_s1412 7 месяцев назад
Hi Rezza , I am using setproperty in an apply to each loop and updating new updated value of the object to excel column data but after the first iteration the data resets to 0 rather than holding the previous updated value can you help me with this
@RezaDorrani
@RezaDorrani 7 месяцев назад
I have not come across this issue and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@erinfield1943
@erinfield1943 Год назад
4:33- is this what I need to do to take the objects out of my arrays in Power BI? Power BI dynamic content is arrays, not objects, so every time I try and do something, it puts it in an Apply to Each, and there are just WAAAY too many loops going on in my flow, it's insane. Do I have to do this Expression thing to all my dynamic content so I can have a normal clean flow?
@RezaDorrani
@RezaDorrani Год назад
Check my videos on power bi and power automate.
@edjk6278
@edjk6278 4 месяца назад
Is it possible to use object variables in a loop action (sum)?
@RezaDorrani
@RezaDorrani 4 месяца назад
Probably possible but not something I have tried
@vijayalakshmipatil6402
@vijayalakshmipatil6402 2 года назад
hello can you tell how we can use And OR opertion in condtion in powerflows
@RezaDorrani
@RezaDorrani 2 года назад
The flow creator is creating the AND OR conditions. docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#logical-comparison-functions
@Xwodsarecool
@Xwodsarecool 5 месяцев назад
What if you have multiple vName values and you just want to select Justin Smith as an example, how would you do that?
@RezaDorrani
@RezaDorrani 5 месяцев назад
Did this video a while ago. I would have to try it out to know how that can be done.
@colby4390
@colby4390 2 года назад
What if you need to us the "Ask in Power Apps" feature? How would you type that?
@RezaDorrani
@RezaDorrani 2 года назад
Add compose action, select ask in Power Apps. Then go to peek code for compose action and copy the expression formula.
@jihenhnena2247
@jihenhnena2247 3 года назад
Thank you Rezza, I'm wondering how can we use variables when we have to call a soap API?
@RezaDorrani
@RezaDorrani 3 года назад
When making the SOAP call via flow you can just pick the variables from dynamic content.
@srv158
@srv158 2 года назад
Hi Reza I have a question: Is it possible to remove comma from a number value and convert that decimal number to whole number in power automate platform. For example: I want to convert 1,27.89 to 128. Here I want to remove comma after 1,2XXX and covert the decimal number 127.89 to 128. Please help
@RezaDorrani
@RezaDorrani 2 года назад
I would guess Yes but would require expressions. I do not have a video reference on this and would have to try it out myself to know more about it. I will recommend posting your query with screenshots on the forums at powerusers.microsoft.com May be someone has done something similar.
@LimpChiken
@LimpChiken 13 дней назад
Hi Reza, I came here from a video on Jon Levesque’s channel about reducing the number of variables in order to reduce the number of API calls the flow uses. In this case wouldn’t it end up using more API calls than just using lots of variables? Since using this method you only have to set up one variable but then use 2 API calls (compose, then set) every time you want to update a variable, whereas without this method you would have to set up a bunch of variables but then only use one API call to update them? This is for a large amount of updates for variables
@RezaDorrani
@RezaDorrani 13 дней назад
You can update multiple variables in a single compose action as well. You can stitch expressions together.
@LimpChiken
@LimpChiken 13 дней назад
@@RezaDorrani in my scenario I’m looping through a table with a for each loop, and incrementing four variables by four numbers in the current table row. However a number won’t always be present there, so right now it me got it set up so it checks if the value is not null then increments the variable, repeated four times. Is there a way to do something like this all in one step using these object variables?
@RezaDorrani
@RezaDorrani 13 дней назад
@@LimpChiken Im not sure if there is an option.
@skim32
@skim32 5 месяцев назад
Trying to understand the benefits of using this method. The idea was to reduce the number of variables and complexity. But, If the variables you want to work with all require manipulation, you will need to create a compose statement for each variable anyways. So you are essentially replacing the initialize variable with a compose. So not sure if you are really reducing the flow's complexity. You are making it easier to read the variables up at the top. However, making it more complex to read the operations that are performed on variable throughout the flow. As each manipulation will require a compose and set variable. And to analyze what the operation is doing; I have to analyze an expression of each of the compose. I am new to power platform, and maybe I am missing something.
@RezaDorrani
@RezaDorrani 5 месяцев назад
Idea was to reduce number of variables. Reducing complexity was not a claim. Complexity is high. You can update 4-5 variables in one go with a single compose vs what you could do with multiple variables. I would suggest sticking with regular initialize variable and update variable if complexity showcased in video is high.
@skim32
@skim32 5 месяцев назад
@@RezaDorrani After working on a project for the past 2 hours (after I posted my initial comment) I realized the benefit. I'm working with a nested loop where I am incrementing 10 variables by 1. Then once one interation is done, I have to reset all variables to 0 and do 2 more iterations. That means I got to initialize 10 variables. Then increment 10 variables. Then set 10 variables back to 0. Using your method. I have 1 record variable. I increment 10 variables inside of the record variable. And then reset all variable to 0 in one compose command. At least, that is what I have conceptualized right now. Thanks. Your content has greatly helped me.
@skim32
@skim32 5 месяцев назад
@@RezaDorrani Any chance do you have a tutorial on how to set property to update multiple variables? I can't seem to figure that part out.
@RezaDorrani
@RezaDorrani 5 месяцев назад
@@skim32 I don’t
@sundrapillay6668
@sundrapillay6668 3 года назад
Thanks Reza
@RezaDorrani
@RezaDorrani 3 года назад
Most welcome
@madunurivamsidhar2235
@madunurivamsidhar2235 2 года назад
Can we set boolean in set property.
@RezaDorrani
@RezaDorrani 2 года назад
Yes. Just use true or false as expression to set its value.
3 года назад
How can I merge a function into an expression to compose one outcome? Goal: To return the JSON value of a property name dynamically as a simplified Switch control. E.g. outputs('monthsTableJSON').March but I want that .March or ?['March'] to be replaced with a String coming from formatDateTime(utcnow(), 'MMMM')
@RezaDorrani
@RezaDorrani 3 года назад
Not sure I understood your question. You can write multiple expressions together. Check aka.ms/learnexpressions to learn more about expressions.
3 года назад
​@@RezaDorrani Thank you, I ♥ those series, watched several times, finally I made my simple expression work, no doubts you did not understand my question fully. Was too simple and obvious. 👍 outputs('monthsTableJSON')?[formatDateTime(utcNow(),'MMMM')]
@RezaDorrani
@RezaDorrani 3 года назад
@ Great!
@snuggles4eva
@snuggles4eva 3 года назад
I have an MS Form that creates or updates tables on Dataverse through Power Automate which all works fine. I have a section which requires a one to many relationship (as a repeating table) for the record I am updating. In this section the form has a set of 3 questions which are repeated should the worker have extra work and needs to enter more answers as shown in the diagram. I set up a simple JSON which brings out the first set of data but I don't know how to pick up all three. To complicate matters the user may not need to fill any of the sets if there are no extra works. Do you have a video on getting a 'one to many' records from an MS Form to Dataverse or similar? Form Main Table Multi Table Question1 ID Auto ID Field1 Field2 Field3 Foreign Key Question2 123 234 Answer1 Answer2 Answer3 123 Question3 235 Answer1 Answer2 Answer3 123 More Questions Y/N 236 Answer1 Answer2 Answer3 123 Question1 Question2 Question3 More Questions Y/N Question1 Question2 Question3 More Questions Y/N
@RezaDorrani
@RezaDorrani 3 года назад
Looks like a question related to a specific use case. This would be tough to solve on chat. I would recommend you post your query with screenshots on the forum at powerusers.microsoft.com/
@snuggles4eva
@snuggles4eva 3 года назад
@@RezaDorrani Thank you Reza. I will do that.
@mlmiles1
@mlmiles1 2 года назад
I attempted to recreate your simple example and run the flow, but I got the following message: The variable 'varExpertise' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'varExpertise' only supports values of types 'Array'. Where did I go wrong?
@RezaDorrani
@RezaDorrani 2 года назад
As per the error, you are providing data type string where the expression expects an array. I will have to look at your flow in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@mlmiles1
@mlmiles1 2 года назад
@@RezaDorrani Thanks a bunch! I will do that!
@pedrosanteloy
@pedrosanteloy 3 года назад
Hello... How could I initialize a variable (integer) with null value?
@RezaDorrani
@RezaDorrani 3 года назад
You could use the expression null
@pedrosanteloy
@pedrosanteloy 3 года назад
@@RezaDorrani hmm my scenario is: I have an ID that can be blank sometimes because it is a optional field from my form. Power Apps doesn't run my flow once the variable is set up as integer and the ID value is blank. I think that null expression would not work because the initialize variable step is not even triggered. I guess.
@RezaDorrani
@RezaDorrani 3 года назад
@@pedrosanteloy Now thats a different use case. Depends on how flow is being triggered. Tough to provide guidance here on chat without looking at the flow and scenario. I would recommend you post your issue with screenshots on the forums at powerusers.microsoft.com
@pedrosanteloy
@pedrosanteloy 3 года назад
@@RezaDorrani Thank you, Reza! I will (:
@MisteryOfFaith
@MisteryOfFaith 2 месяца назад
Can you take the variable output into a csv file?
@RezaDorrani
@RezaDorrani 2 месяца назад
Possible but not something I have tried
@MisteryOfFaith
@MisteryOfFaith 2 месяца назад
@@RezaDorrani I have office 365 groups that I would like to retrieve the members of each groups into a csv file. I have captured the output into a variable then parse json, used a select component after parse json get the get the columns that I want to retrieve. After the select component I have used create csv table component and then create file to store the csv into my share point document My biggest issue is that some data get created into the csv file while some data keep failing and I don’t know what is causing some records to fail nor how to make those data work
@RezaDorrani
@RezaDorrani 2 месяца назад
@@MisteryOfFaith I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
@MisteryOfFaith
@MisteryOfFaith 2 месяца назад
@@RezaDorrani thank you 🙏
@laminkhant8875
@laminkhant8875 2 года назад
i used parallel flow, if i used for 10 comment for this can be?
@RezaDorrani
@RezaDorrani 2 года назад
10 comment? I did not understand your question
@laminkhant8875
@laminkhant8875 2 года назад
@@RezaDorrani I have 10 start and wait approval process (using parallel flow), for each i made initialize variable for comment. That why they are different response comment come from output. So i want to orgnize that 10 variable can we put this method can work? thanks for patient my english.
@RezaDorrani
@RezaDorrani 2 года назад
@@laminkhant8875 Im not sure about that. Something you would have to try out and see if it works.
Далее
What it feels like cleaning up after a toddler.
00:40
His reaction 😳 (via @kaitlyn.b0506/TT) #shorts
00:10
Power Automate flow Expressions Tutorial
35:40
Просмотров 105 тыс.
Easily Avoid Apply to Each Loops | Power Automate
10:20
What it feels like cleaning up after a toddler.
00:40