XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

Connection reference lookups are not typed

Open misoeli opened this issue 3 years ago • 1 comments

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 avatar Jul 28 '21 10:07 misoeli

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.

misoeli avatar Jul 28 '21 10:07 misoeli