Connection reference lookups are not typed
misoeli opened this issue · 1 comments
misoeli commented
Describe the bug
Also for the Connection Entity, the record1 and record2 attributes are being defined as any attributes as well, rather than maybe LookupAttribute
Expected behavior
The correct type would be set for these attributes
Environment
CRM/D365/CDS version: Version 1710 (9.2.21061.146) online
Tool version: 5.5.1
(Originally posted in issue #232 )
misoeli commented
I guess these fields should be Lookups to multiple entities - (Similar to a Customer field, which is typed as Xrm.LookupAttribute<"account" | "contact">). I think the field is created slightly different from "normal" lookups (seeing as it can hold a reference to any entity), which XrmDT does not support at the moment.