cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aldirjr
New Member

Microsoft Dataverse - Compare String x Lookup

Hello,
I have a Payments table with a Lookup field with the Clients name. And I have the Clients table.

 

How do I compare 'John Smith' from the Payments table, with 'John Smith' of the Clients table?

 

When I try to compare, I end up comparing 'a4gg8e53-1c03-ae22-b823-800d3a795771' (Payments table) with 'John Smith' (Clients Table)

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @aldirjr :

a4gg8e53-1c03-ae22-b823-800d3a795771 is the unique identifier in the table, I assume the table corresponding to this lookupfield is the Clients Table. Then you need to use this unique identifier to find the corresponding record in the Clients Table (use the Filter array action, and then use the First function to get the first record returned), and then use the value of the Clients name in this record to go and ' John Smith' comparison.

I think this link will help you a lot:

Getting the text value of CDS Lookup? 

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @aldirjr :

a4gg8e53-1c03-ae22-b823-800d3a795771 is the unique identifier in the table, I assume the table corresponding to this lookupfield is the Clients Table. Then you need to use this unique identifier to find the corresponding record in the Clients Table (use the Filter array action, and then use the First function to get the first record returned), and then use the value of the Clients name in this record to go and ' John Smith' comparison.

I think this link will help you a lot:

Getting the text value of CDS Lookup? 

Best Regards,

Bof

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,973)