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
Super User
Super User

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
Super User
Super User

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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,073)