XrmDefinitelyTyped
XrmDefinitelyTyped copied to clipboard
abc_customentity_Result types Date-only field as Date, but it's actual a string like "2021-04-29"
Describe the bug
XrmDefinitelyTyped creates types for the fields of RetrieveMultiple result, for example for entity abc_customentity there will be an interface like this: interface abc_customentity_Result extends abc_customentity_Base, abc_customentity_Relationships.
My entity has "Date-only" field. It is typed as zepcis_actualdatetill?: Date | null in abc_customentity_Base interface. But Retrieve multiple returns "2021-04-27", so it is mis-typed.
To Reproduce
- Create date-only field in test environment.
- Generate types.
- Create test record where our new date-only field has value.
RetrieveMultipletest entity. Expected value: date typed. Actual value: string typed.
Environment
- on-prem 9.1
- Tool version: 5.4.7