XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

abc_customentity_Result types Date-only field as Date, but it's actual a string like "2021-04-29"

Open skfd opened this issue 4 years ago • 0 comments

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

  1. Create date-only field in test environment.
  2. Generate types.
  3. Create test record where our new date-only field has value.
  4. RetrieveMultiple test entity. Expected value: date typed. Actual value: string typed.

Environment

  • on-prem 9.1
  • Tool version: 5.4.7

skfd avatar Apr 29 '21 06:04 skfd