In Power Automate, at times we need to write expressions manually, a quick way of doing is by using Peek code functionality that is present in every action in Power Automate . Especially this Peek code comes for rescue, when ever we are trying to work on actions like Lists, lookup values, Flow trigger conditions Peek code will be useful.
Login to the required Power Apps environment using URL make.powerapps.com by providing username and password and click on Flows on the left-hand side as shown in the below figure.
After Step 1, Click on New Flow and select instant cloud flow and provide the trigger as Manually trigger a flow and click on Create as shown in the below figure.
After Step 2, name the flow as Usage of Peek code and take an initialize variable and name it as Initialize variable – Provide 1st User Age as 25 and provide values
as shown in the below figure.
After Step 3, on Initialize variable – Provide 1st User Age as 25 step click on 3 dots and click on peek code as shown in the below figure.
After Step 4, observe the json format of the code as shown in the below figure.
After Step 5, take list action and select contacts as table name as shown in the below figure.
After Step 6, now go to the peek code on that step and observe json format of the action and get the details of entityname,operationId etc as shown in the below figure.
After Step 7, now let us see for compose action as shown in the below figure.
After Step 8, see peek code and observe the how input variable User1Age as shown in the below figure.
- Make sure to save the flow whenever you try expressions.
- As many questions came with my previous posts, like how I framed expression in Flow Trigger Condition, I have used this peek code feature that was provided by Microsoft .
- I tried to explain for few actions, but for all actions we can see this peek code functionality to understand code behind the scenes.
Conclusion: In this way we can use peek code in power automate to understand how internally code was generated as json .
One thought on “Power Automate Fundamentals # 62: Usage of Peek Code in Power Automate”
Pingback: Rewind March 2022 – Common Man Tips for Power Platform, Dynamics CRM,Azure