cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dual Super User II
Dual Super User II

Re: Return multiple Json return values to powerapps from flow

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?)

Highlighted
Helper II
Helper II

Re: Return multiple Json return values to powerapps from flow

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

Dual Super User II
Dual Super User II

Re: Return multiple Json return values to powerapps from flow

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

Highlighted
Helper II
Helper II

Re: Return multiple Json return values to powerapps from flow

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

Highlighted
Dual Super User II
Dual Super User II

Re: Return multiple Json return values to powerapps from flow

Hi @sannadisarath 

 

That took some time but glad it worked out 🙂

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,653)