We all know that Microsoft Flow is part of the PowerPlatform. The PowerPlatform is a No-Code platofmr that helps Office 365 power users to create apps and processes using Microsoft Flow and PowerApps.
Today I bumped into the Peek code option in Microsoft Flow. Peek code in no code platforms. Of course LogicApps has had this peek code for a while. But this is new to Flow.
When you click on the peek code option for an action or a trigger, you will find the json that was used to behind the pretty interface of Microsoft Flow.
This is a great step forward toward debugging all those unclear messages. It iwll also help a lot of user understand why things go wrong some times.
Imagine if you created flow that moved an email from one location to another
You can now see what happens internally and you will find that items(‘Apply_to_each’)?[‘Id’] is used to select the email.
Now imagine if you wanted some double quotes in a text. As you can see in the above example Double quotes in json could cause trouble. I’m going to set a compose action to some text with double quotes.
I can now see that the double quotes are handles correctly as they have been escaped with double quotes
Taking this all a step further, you can now also see all the input in triggers. You will find that within buttons, PowerAppstriggers that you can now get a lot more detail on the parameters that you created.
In the above example I created an input and within the peek code you can see that this is of the type any. These pieces of information used to be hidden form the user unless you exported the flows and looked at the json file that was exported. Event better I can even see that it is used within the Compose action.
Often I hear people say that LogicApps is better than Flow as it is possible to see the code created within the graphical interface. Personally I’ve not needed to see any code of my flows, even though sometimes it would have been helpful.
Now we have yet another reason why Flow should be seen as the tool to be used rather than LogicApps as the tool to develop your automated processes.