cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

how to concat two values from lookup fields

Hi, I am trying to concat two lookup field values(Group number + dosimeter type) in name field, how should I do that, please advise. 

Screenshot 2022-04-06 095605.png

9 REPLIES 9
abm
Super User
Super User

Hi @Anonymous 

 

Check the run history of the flow after retrieving the record. See below here I am getting Get a rows by Id. Then look the run history to see the text something similar Display.V1.FormattedValue.  

 

outputs('Get_a_row_by_ID')?['body/_yourcolumnsnamehere_value@OData.Community.Display.V1.FormattedValue']

 

Add a compose and add the above as an expression. Do the same for the other column as well.

 

Finally you can use the output of both to use the concat() expression to get the text you want.

 

Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
JPMHuls
Advocate II
Advocate II

In the Dynamic content look for the lookup field reference ending with Value. For example for Country lookup to the Countries list, you should look for 'Country Value'. So in your case there should be a Dynamic Content reference for 'Group Value' and 'Dosimeter Type Value'.

JPMHuls_0-1649254481481.png

 

Hi @JPMHuls  & @Anonymous 

 

My answer was based on D365 lookup not SharePoint. 

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
uypham
Frequent Visitor

Hi @abm,

 

I tried to add two Composes for each field using your below format and return a flow checker. 

outputs('Get_a_row_by_ID')?['body/_yourcolumnsnamehere_value@OData.Community.Display.V1.FormattedValue']

 

 

uypham_0-1673320166375.png

 

Hi @uypham 

 

Looks like you copied my expression. Here your trigger step you need to reference. You need to reference

 

@triggerOutputs()?['body/_yourcolumnsnamehere_value@OData.Community.Display.V1.FormattedValue']
 
You need to replace _yourcolumnnamehere with appropriate column name.
 
Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
uypham
Frequent Visitor

Hi @abm ,

 

There is no error after changing two compose to @triggerOutputs()?

 

For the final step, I add an "Update a row" action and concat two compose field, but nothing is showing on the Name field.

 

uypham_0-1673364373175.png

 

 

Hi @uypham 

 

Could you post a screenshot of your compose mapping expressions?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
uypham
Frequent Visitor

Hi @abm 

 

Below is the compose expression:

- Event: triggerOutputs()?['body/_new_event_eventrole_value@OData.Community.Display.V1.FormattedValue']

- Role:   triggerOutputs()?['body/_new_eventrole_role_value@OData.Community.Display.V1.FormattedValue']

 

Name: concat(outputs('Event'),outputs('Role'))

 

uypham_0-1673368239243.png

 

Hi @uypham 

 

Thanks for the screenshot. Did you checked the run history? Check each steps? Also check your email? I have sent you a request earlier.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,429)