I've been unable to find a working workaround for this apparent bug.
I'm simply trying to create a collection from CDS entity that contains relationships. I want to be able to access the related entities via my collection.
ClearCollect( MyCollection, 'My CDS Entity')
Without fail, all the lookup values in MyCollection are blank.
I have seen some posts suggesting to use ShowColumns and AddColumns to explicity call down the related fields. This has not worked for me:
ClearCollect(
LoadedScoreCard,
ShowColumns(
AddColumns(
ThisItem.'Customer Rating Informations',
"New Risk Group", 'Risk Group'.Name, // Lookup
"New Measure ID", Measure.Name, // Lookup
"New Measure Text", 'Measure (text)',
"New Score", Score,
"New Measure Option Selected", 'Measure Option Selected (text)',
"New Measure Option", 'Measure Option Selected'.'Measure Option' // Lookup
),
"New Risk Group",
"New Measure ID",
"New Measure Text",
"New Score",
"New Measure Option Selected",
"New Measure Option",
"Customer RI"
)
);
What is the situation here? Have I missed something or is this an outstanding bug?
Thanks
JT