cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrQ
Helper V
Helper V

convert array to object?

Dear community

 

I need to update a SharePoint multi-person field. In my flow, I'm managed to get the email address of the required people structured as follows:

 

[
  "user1@xy.com",
  "user2@xy.com",
  "user3@xy.com"
]

 

I get the above structure like so:

pa-app-owners.png 

The "Get items - Application Owners" action is just pointing to another SharePoint list including two columns:  TitlePerson field.

 

 

In order to update the multi-person field, I need to get it structured like this:

 

[
  {
    "Email": "user1@xy.com"
  },
  {
    "Email": "user2@xy.com"
  },
  {
    "Email": "user3@xy.com"
  }
]

 

 

 

Could anyone point me in the right direction? 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Mira_Ghaly
Dual Super User II
Dual Super User II

@mrQ 

Please check below to convert to the required format

Mira_Ghaly_0-1611742334856.png

Mira_Ghaly_1-1611742561331.png

 

Hope this helps!

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

Paulie78
Super User
Super User

Simply like this:

2021-01-27_10-28-19.jpg

View solution in original post

3 REPLIES 3
Mira_Ghaly
Dual Super User II
Dual Super User II

@mrQ 

Please check below to convert to the required format

Mira_Ghaly_0-1611742334856.png

Mira_Ghaly_1-1611742561331.png

 

Hope this helps!

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@Mira_Ghaly 

I'm feeling quite stupid now... seems so easy, haha :-). Should have thought of that....

Thanks for your quick help! This is exactly what I needed.

Paulie78
Super User
Super User

Simply like this:

2021-01-27_10-28-19.jpg

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,658)