Monday, October 26, 2015

Retrieve Multiple Records using XrmSvcToolkit

Code Snippet:

XrmSvcToolkit.retrieveMultiple({
        entityName:Account,
        async: false,
        odataQuery: _query,//"?$filter=Name like 'ADVANCED'",
        successCallback: function (result) {
            accounts = result;
        },
        errorCallback: function (error) {
           alert("Unable to retrieve records...");
        }
    });

No comments:

Post a Comment