cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sannadisarath
Level: Powered On

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

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Level 10

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

 
 
14 REPLIES 14
RezaDorrani
Level 10

Re: Return multiple Json return values to powerapps from flow

Hi @sannadisarath 

 

Repond to PowerApps will not work

 

there is a different approach

Check this video by Audrie Gordon

https://www.youtube.com/watch?v=IOG0AecA6xE

 

Regards,

Reza Dorrani

 

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

sannadisarath
Level: Powered On

Re: Return multiple Json return values to powerapps from flow

I cannot use response action inside foreach or even outside for each, is there any other way to get the consolidated response?

RezaDorrani
Level 10

Re: Return multiple Json return values to powerapps from flow

Hi @sannadisarath 

 

You can set an array object variable in Flow with all the data you need to pass and then send it using response action at end of flow

sannadisarath
Level: Powered On

Re: Return multiple Json return values to powerapps from flow

Understood, but that is what i am trying to do, i want two properties from "Get Attachments" action, i am able to append to array only one propery, how can i appened two properties(display name and url) to an array, can you please let me know

RezaDorrani
Level 10

Re: Return multiple Json return values to powerapps from flow

@sannadisarath 

 

If you share a screenshot of the Flow I may be able to help

sannadisarath
Level: Powered On

Re: Return multiple Json return values to powerapps from flow

please check

2019-08-16_10-44-18.png

sannadisarath
Level: Powered On

Re: Return multiple Json return values to powerapps from flow

i tried using select output, which fails for me, so i have used current item as output but the response i am seeing as "true" from response action in powerapps

RezaDorrani
Level 10

Re: Return multiple Json return values to powerapps from flow

@sannadisarath 

select returns array

 

so you will have to loop through that array and add each item to your array using expression item()

sannadisarath
Level: Powered On

Re: Return multiple Json return values to powerapps from flow

i am getting below error

2019-08-16_11-43-53.png

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 116 members 4,144 guests
Please welcome our newest community members: