web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to pass collection...
Power Apps
Answered

How to pass collection objects as an array of strings

(0) ShareShare
ReportReport
Posted on by 143

Hi All, can anyone with better knowledge please help? 

I am trying to pass a Json to a power automate from powerapps, but an array of object keeps getting sent, even when I enclose the passed object in a JSON. I am passing this;

 

Set(
 response,
 Update_doc_tag.Run(
 JSON(
 {
 metadata_storage_path: galleryResults.Selected.metadata_storage_path,
 tags: (Tags).Value
 }
 )
 ).response
);

 

 

The tags above is a collection of strings And the expected schema in power automate is this:

 

{
 "metadata_storage_path": "fsdfFSDGDGSAHGDHASHJSDAJHDSAJHASHSASA2",
 "tags": [
 "victor",
 "ricky"
 ]
}

 

 But it gets to power automate like this:

 

"metadata_storage_path": "ywttwetewwehhjhajdjhjddds",
	"tags": [
		{
			"Value": "schools"
		},
		{
			"Value": "jobs"
		},
		{
			"Value": "victor"
		}
	]

 

which causes a failed schema error. 

Can someone please help with how to pass an array of strings in the tags, please?

 

Thanks

@RandyHayes @RezaDorrani 

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @onyebuchiboss ,

     

    I did a test for you:

    1\ Add a button control and set its onselect property to :

    ClearCollect(tags,{Value:"schools"},{Value:"jobs"})

     

    2\ Add a button control and set its onselect property to :

    Test44.Run(JSON({metadata_storage_path:"Test",tags:tags.Value}))

     

    3\ Build an instant flow 'Test44'.

    v-xiaochen-msft_0-1618220329662.png

    Generate from sample:

    {
    "metadata_storage_path": "Test",
    "tags": [
    {
    "Value": "test2"
    }
    ]
    }

    v-xiaochen-msft_1-1618220396138.png

     

    4\ The result is as follows:

    v-xiaochen-msft_2-1618220430896.png

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

     

     

  • onyebuchiboss Profile Picture
    143 on at

    Thanks, it works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard