cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

ClearCollect doesn't get the lookup fields

Hi,

i am connecting to the new CDS 2.0 using the new CDS connector (preview), and noticed that when i use the collect or ClearCollect functions, it skips the lookup fields in the collected table (it doesn't even get the ids of the lookup fields).

 

this behavior was not in the old CDS 1.0 premium connector!

 

regards,

Mohammad

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: ClearCollect doesn't get the lookup fields

Hi,

 

Could you please share more details about the entity you used here?

Is it a custom Entity, or a system one?

 

The lookup field under the New CDS seems to be a little different from the old one.

It seems the field is mostly build on top of the entity structure from Dynamics 365, which only keeps the PrimaryKey of the parent entity.

You may check more details from the following document:

Attribute metadata

Entity relationship metadata

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Kudo Collector
Kudo Collector

Re: ClearCollect doesn't get the lookup fields

Hi @v-micsh-msft,

it is a custom entity, and i tried to connect to the same entity using the two different connectors available now (Dynamics 365 connector, and the CDS preview connector)

 

when i use the dynamics connector and use the ClearCollect function, it will retrieve all columns including the primary keys of the parent entity/ies.

 

while if i use the CDS preview connector and use the same function ClearCollect on the same entity, it will retrieve everything EXCEPT the lookup field, i.e. it is dropped!

 

Regards,

Mohammad

Highlighted
Resolver II
Resolver II

Re: ClearCollect doesn't get the lookup fields

Has this issue been resolved?  I'm using the default CDS connector to connect to custom entities in my environment and when I use ClearCollect to pull in the data, any lookup value or Option set value remains blank in my collection.

 

Thanks - 

Tom.

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,813)