cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
Highlighted
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
Highlighted

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?

Highlighted
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (8,129)