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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,817)