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

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
Helper II
Helper II

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (7,778)