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
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?

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,884)