XrmDefinitelyTyped
XrmDefinitelyTyped copied to clipboard
Retrieve using alternate key
In the Web API you can retrieve records using alternate keys instead of GUIDs, as seen in the docs.
How the function call could look like:
XrmQuery.retrieveAlt(x => x.accounts_$MyAltKey).executeWith({ accountnumber: "123" })
This call should of course provide some of the same functionality as the regular XrmQuery.retrieve() function in XrmQuery, such as selecting and expanding attributes.