XrmDefinitelyTyped
XrmDefinitelyTyped copied to clipboard
Connection reference lookups are not typed
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 )
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.