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

Return multiple Json return values to powerapps from flow

Hi, I want to pull only attachments from Sharepoint list, below is my Flow, i am not sure how to combine all Json results and union them, i want to return the all Json results from all sharepoint list attachments to powerapps.

 

I want display name and aboluteuri properties from list attachments, please let me know how can i achieve this.

 

2019-08-15_13-23-32.png

14 REPLIES 14

Hi @sannadisarath 

 

ok so help me understand since I will be trying just the attachments part on my end

 

You want to send attachments as collection back to PowerApps?

and what data from attachments do you want to send back (which properties?)

yes, i want to send them as a collection, I want url of the attachment and the name

Hi @sannadisarath 

 

Try the below format

 

Capture.PNG

 

 

You can change the Value format the to include any other fields as you like

Make sure you have Response action JSON Schema set

for my example schema is

 

{
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"displayname": {
"type": "string"
}
},
"required": [
"url",
"displayname"
]
}
}
 
Change schema based on your array object 
 
In PowerApps Use
ClearCollect(colReturnCol, 'PowerAppsbutton'.Run())
 
Flow name. Run function
return type will be held in a collection
 
Please note - PowerApps does keep a cached connection
Your best bet will be to remove the flow connection from powerapp and then re-add it 
 
I tested your entire scenario and it worked for me
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 
 

View solution in original post

wow, thats exactly what i need, than you so much for all the help you did.

Hi @sannadisarath 

 

That took some time but glad it worked out 🙂

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,575)