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.
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!