Format your data with examples is a feature available in the cloud flow builder of Power Automate. It simplifies flow building experience by reducing the need for you to write your own expressions from scratch.
If you want to change how data is returned in your flow, typically you would need to write an expression- which can be complex and time consuming. With format your data with examples, you don’t need to be an expert on expressions. Now, as you provide examples of how you want the data returned, Power Automate will generate the expression for you.
An example of this might be if you need to change how a date value is returned. Let’s say you’ve trained an AI Builder model to extract information from a form. One of the fields is a date, and on the form the date is written in the format of DD/MM/YYYY.
You want to build a flow that will extract this date from the form, and add it to Dataverse. In order to store a date value in Dataverse/Dynamics 365, it needs to be in the US date format, with month before day (e.g. MM/DD/YYYY). Without formatting the date to match this format first, you will receive an error.
In your flow, click on the Expression tab and select Format data by examples.
Select the value you want to convert. In this case, it is the date value extracted from an AI Builder model, called Filed Date value. Then, provide examples of what the extracted date would look like VS what it should look like in order to be compatible with a Dataverse date column.
After you’ve provided a few examples, click Get expression. You’ll then have an expression generated for you and ready to use. Click Apply, and it will be added to your flow.