cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
normmsnpoweruse
Helper III
Helper III

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

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
normmsnpoweruse
Helper III
Helper III

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?

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,003)