cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David59740
Helper II
Helper II

PowerApp breaks every time I add a schema to 'Response' action in the connected flow

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)

 

 

 

14 REPLIES 14

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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.

image.png

This is the resulting data collection in Power Apps

image.png

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1 Hey thanks so much, it's working, I appreciate the time you put in helping me today seriously.

@Pstork1 I apologize can you show your 'Response' action? I'm still getting the error for adding the flow in PowerApps.

It uses the Output of the Data Select as the Body.  Also make sure you update the Schema to match the smaller dataset.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,044)