XrmDefinitelyTyped
XrmDefinitelyTyped copied to clipboard
Better handling of formatted values, lookup properties and expand
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));