cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sravya07
Microsoft
Microsoft

Conversion of String to Collection/Table

I am reading excel data to powerapps using Power automate, trying to return the datatable as an output variable. Since table or array is not one of the supported return types from Power automate, I am converting the datatable to String using string() function in the flow. The output from the flow looks something like :

 

[{\"@odata.etag\":\"\",\"ItemInternalId\":\"9094dee0-283d-4091-aa13-ca3a0bf1afcf\",\"Name\":\"Sravya Bollineni\",\"Employee Alias\":\"srbollin@microsoft.com\",\"Gift Card Code\":\"YKY4-WSZAW3-FVN2\",\"Reference ID\":\"'6014853089037510\",\"Amount\":\"500\"},{\"@odata.etag\":\"\",\"ItemInternalId\":\"8d655149-2001-4840-b85a-deb2d3a42b3b\",\"Name\":\"Sai Phani\",\"Employee Alias\":\"saiphani@microsoft.com\",\"Gift Card Code\":\"YKY4-WSZAW3-FVR3\",\"Reference ID\":\"6014463089037510\",\"Amount\":\"500\"}]

 

Now, I am required to convert this response to a valid collection in the Apps. I do not see any difference in the format using JSON(the above value). How do I convert this to a datatable or a collection which I can loop through. Any help much appreciated!!!!

 

 

2 REPLIES 2
JordanDeVan
Advocate I
Advocate I

Have you tried  to generate a schema from your excel payload and pass it back to PowerApps using a the response connector? 

sravya07
Microsoft
Microsoft

Hey @JordanDeVan,

 

Thanks for responding. I framed a response schema within the flow and tried sending it to PowerApps using the HttpResponse action. That worked 🙂 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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