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

Get Value of a lookup

hi.

scenario - send email with some html tables in it.

 

Steps-

 

Get Items from SharePoint List with Lookup Column in it.  The Lookup references another list on the site.

Select on the Get Items using the following code:  item()?['Column Name']

Pipe the Select into Make HTML Table

Send email with the HTML.

Everything looks good except the Lookup.  I get this...

{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":10,"Value":"K and E"}

How do I just get the value "K and E"?

 

Thanks ahead of time.

1 ACCEPTED SOLUTION

Accepted Solutions
DeepakS
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

 LoopUp filed consist Id and Value so you need to use expression like 

items('Apply_to_each_2')?['LookUpcolumn']?['Value'] to extract the value only.
 
——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
DeepakS
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

 LoopUp filed consist Id and Value so you need to use expression like 

items('Apply_to_each_2')?['LookUpcolumn']?['Value'] to extract the value only.
 
——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

As @DeepakS  said, you should choose the column Value dynamic content then the issue could be solved.

 

Best regards,
Alice       
 
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,995)