Skip to content

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

@DeanCloudFlow

Description

@DeanCloudFlow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions