Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS2344 (TS) Type 'NumberAttribute | null' does not satisfy the constraint 'Attribute<any>'. Type 'null' is not assignable to type 'Attribute<any>'. #301

Open
DeanCloudFlow opened this issue Jan 26, 2024 · 0 comments

Comments

@DeanCloudFlow
Copy link

XrmDefinatelyTyped is generating a line that does not compile

getControl(controlName: "header_process_msevtmgt_eventtimezone"): Xrm.Control<Xrm.NumberAttribute | null> | null;

To Reproduce
This happens when Marketing / Customer Journey is installed

Expected behavior
msevtmgt_eventtimezone is not understood. It is a "Whole Number" with a "Time zone" format.

Screenshots
image

get(name: "header_process_msevtmgt_eventtimezone"): Xrm.Control<Xrm.NumberAttribute | null> | null;

Environment

  • CRM Online
  • XrmDefinatelyTyped v 6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant