XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

Better handling of formatted values, lookup properties and expand

Open magesoe opened this issue 7 years ago • 0 comments

Currently, we don't handle these 3 things in a good way. Typings for selects aren't respected on expand, formatted values aren't generated on expands and lookup properties aren't generated at all.

For quick test use the following

XrmQuery.retrieve(x => x.accounts, Form.data.entity.getId())
      .select(x => [x.accountnumber])
      .expand(x => x.primarycontactid, x => [x.fullname, x.parentcontactid_guid])
      .includeFormattedValuesAndLookupProperties()
      .execute(x => console.log(x), x => console.log("fail: " + x.message));

magesoe avatar Sep 14 '18 14:09 magesoe