delegateas/XrmDefinitelyTyped

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

skfd opened this issue · 0 comments

skfd commented

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