cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rthompsoneu
Level: Powered On

Dynamic 365 can't get to the Guid

Hi,

 

I can't seem to get to the GUID to use a Lookup

 

I have a relationship.  They are Sample Group and Sample Group Detail.

 

I am trying to get from Sample Group Detail to Sample Group using a Lookup.

 

When trying to do this I can't get to the GUID.  I only see the "Sample Group" table.  How can I get to the GUID.

 

I trying to get to the field "new_samplegroupid".

 

LookUp('Sample Groups', 'Sample Groups', GUID(txt_SearchOption))

1 ACCEPTED SOLUTION

Accepted Solutions
Edwin-Abdalian
Level 10

Re: Dynamic 365 can't get to the Guid

To get the GUID on any CDS entity, use the GUID function: GUID(MyEntityName), don't use the logical name. just the Name of the Entity. 

Have you set up a One to Many relationship between these two entities? if you have done, then use the lookup field in the "Sample Group Detail" entity. This is easy : GUID(ThisItem.'Your Lookup Field Name on Sample Group Detail '.'Sample Group')

 

If there is no relationship defined in CDS, then you need to use the Lookup function:

Lookup('Sample Group', GUID('Sample Group') = SelectedDetailRecord.GUID('Sample Group Detail') , GUID(Sample Group))

the last highlighted blue argument is optional. if you add it, it will only return the GUID column. if not, the entire record in 'Sample Group' will be returned.

--------------------------------------------------------------------

Please Accept as Solution if this post answered your question so other members can find it. If you found this post helpful consider giving my post a Thumbs Up!

 

View solution in original post

1 REPLY 1
Edwin-Abdalian
Level 10

Re: Dynamic 365 can't get to the Guid

To get the GUID on any CDS entity, use the GUID function: GUID(MyEntityName), don't use the logical name. just the Name of the Entity. 

Have you set up a One to Many relationship between these two entities? if you have done, then use the lookup field in the "Sample Group Detail" entity. This is easy : GUID(ThisItem.'Your Lookup Field Name on Sample Group Detail '.'Sample Group')

 

If there is no relationship defined in CDS, then you need to use the Lookup function:

Lookup('Sample Group', GUID('Sample Group') = SelectedDetailRecord.GUID('Sample Group Detail') , GUID(Sample Group))

the last highlighted blue argument is optional. if you add it, it will only return the GUID column. if not, the entire record in 'Sample Group' will be returned.

--------------------------------------------------------------------

Please Accept as Solution if this post answered your question so other members can find it. If you found this post helpful consider giving my post a Thumbs Up!

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 317 members 2,679 guests
Please welcome our newest community members: