I have a PowerApp that connects to a Power Automate Flow. When an image is uploaded to the PowerApp the flow is triggered. The flow connects to a Form Recognizer API and I am trying to get the response back to PowerApps so I can use the data in the app. So essentially my flow is connected to the app, I can connect to the API in the flow, and everything is fine. Then I add a Response action to the flow and everything is still fine. When I add a schema to the Response action the flow disconnects from the PowerApp which I've gathered is normal. My issue is I cannot connect the flow back to the app even after the schema has changed and the flow is removed. I keep getting this error message:
Unable to add flow
There was a problem adding your service. Please try again later.
Session ID: (SessionID)
Solved! Go to Solution.
OK, let me play around with it a bit. I've made some progress. The problem is definitely related to the embedded schemas that are in the JSON that is returned. I was able to isolate and return the full 'documentResults' array as a collection. But drilling down into it gets blocked by the embedded schemas. I need to find a way to isolate the specific fields you want.
I was able to get all that information except the Merchant Name. I don't see a Merchant Name in the output anywhere. Also, just to verify, you just wanted the overall receipt details and confidence levels for each item. The individual list of items ordered is in there also, but that would be a different array. The Key was to process just the documentResults array from the JSON and then do a Data Select on it to get the values you needed. This doesn't include all the confidence levels, but the one for Time is included to show that it would work.
This is the resulting data collection in Power Apps
It uses the Output of the Data Select as the Body. Also make sure you update the Schema to match the smaller dataset.
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.
We are excited to announce a new way to share your ideas for Power Apps!