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

Lookup field with multiple values

I have a SharePoint Online form with lookup textbox field that can accept multiple names. I want my flow to use these names to be used in the "Get User Profile V2" action to retrieve the job title for each name behind the scene then populate a multiline text box by using "Update Item" action. So here's the final outcome in the multiline textbox.

 

John Doe, System Analyst

MJ, CEO

Sarah Kim, Developer

 

Thanks for any guidance.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Lookup field with multiple values

Hi @normmsnpoweruse ,

 

Do you want to update a multiple lines of text column with profile of nominees?

 

I have made the following flow for our reference.

 

Add the trigger When an item is created.

 

Initialize variable, set its Type as Array, Name as Test.

 

Add an apply to each, select output from Nominees (column of type Person and group with multiple selections enabled).

 

Within the apply to each, add action Get user profile first, then the action Append to array variable. Name set as Test, Value set as below.

 

Under Apply to each, add Compose action with the following code:

join(variables('Test'),',')

 

Add action Update item, input required value, then select compose output for the Profile field.

Note: Profile field is a Multiple lines of column with rich text enabled.

 

Image for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
normmsnpoweruse
Level: Powered On

Re: Lookup field with multiple values

1.jpg2.jpgThis is what I have so far. It is working but the tags <b><br> are not. How can I improve this flow and make the tags work?

Community Support Team
Community Support Team

Re: Lookup field with multiple values

Hi @normmsnpoweruse ,

 

Do you want to update a multiple lines of text column with profile of nominees?

 

I have made the following flow for our reference.

 

Add the trigger When an item is created.

 

Initialize variable, set its Type as Array, Name as Test.

 

Add an apply to each, select output from Nominees (column of type Person and group with multiple selections enabled).

 

Within the apply to each, add action Get user profile first, then the action Append to array variable. Name set as Test, Value set as below.

 

Under Apply to each, add Compose action with the following code:

join(variables('Test'),',')

 

Add action Update item, input required value, then select compose output for the Profile field.

Note: Profile field is a Multiple lines of column with rich text enabled.

 

Image for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

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