You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-6Lines changed: 46 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Any suggestions are welcome!
34
34
*[Disassociate](#disassociate)
35
35
*[Disassociate for a single-valued navigation property](#disassociate-for-a-single-valued-navigation-property)
36
36
*[Fetch XML Request](#fetch-xml-request)
37
+
*[Fetch All records](#fetch-all-records)
37
38
*[Execute Web API functions](#execute-web-api-functions)
38
39
*[Execute Web API actions](#execute-web-api-actions)
39
40
*[JavaScript Promises](#javascript-promises)
@@ -164,9 +165,9 @@ Basic calls can be made by using functions with most commonly used input paramet
164
165
not provide all possible ways of interaction with CRM Web API (for example, [conditional retrievals](https://msdn.microsoft.com/en-us/library/mt607711.aspx#bkmk_DetectIfChanged)
-[ ] overloaded functions with rich request options for all Web API operations.
825
-
-[] get all pages requests, such as: countAll, retrieveMultipleAll, fetchXmlAll and etc.
865
+
-[X] get all pages requests, such as: countAll, retrieveMultipleAll, fetchXmlAll and etc. Implemented in v.1.2.5.
826
866
-[ ] "formatted" values in responses. For instance: Web API splits information about lookup fields into separate properties, the config option "formatted" will enable developers to retrieve all information about such fields in a single requests and access it through DynamicsWebApi custom response objects.
* Sends an asynchronous request to execute FetchXml to retrieve all records.
837
+
*
838
+
* @param {string} collection - An object that represents all possible options for a current request.
839
+
* @param {string} fetchXml - FetchXML is a proprietary query language that provides capabilities to perform aggregation.
840
+
* @param {Function} successCallback - The function that will be passed through and be called by a successful response.
841
+
* @param {Function} errorCallback - The function that will be passed through and be called by a failed response.
842
+
* @param {string} [includeAnnotations] - Use this parameter to include annotations to a result. For example: * or Microsoft.Dynamics.CRM.fetchxmlpagingcookie
843
+
* @param {string} [impersonateUserId] - A String representing the GUID value for the Dynamics 365 system user id. Impersonates the user.
@@ -723,6 +737,46 @@ function DynamicsWebApi(config) {
723
737
});
724
738
}
725
739
740
+
/**
741
+
* Sends an asynchronous request to execute FetchXml to retrieve records. Returns: DWA.Types.FetchXmlResponse
742
+
*
743
+
* @param {string} collection - An object that represents all possible options for a current request.
744
+
* @param {string} fetchXml - FetchXML is a proprietary query language that provides capabilities to perform aggregation.
745
+
* @param {string} [includeAnnotations] - Use this parameter to include annotations to a result. For example: * or Microsoft.Dynamics.CRM.fetchxmlpagingcookie
746
+
* @param {number} [pageNumber] - Page number.
747
+
* @param {string} [pagingCookie] - Paging cookie. For retrieving the first page, pagingCookie should be null.
748
+
* @param {string} [impersonateUserId] - A String representing the GUID value for the Dynamics 365 system user id. Impersonates the user.
* Sends an asynchronous request to execute FetchXml to retrieve all records.
769
+
*
770
+
* @param {string} collection - An object that represents all possible options for a current request.
771
+
* @param {string} fetchXml - FetchXML is a proprietary query language that provides capabilities to perform aggregation.
772
+
* @param {string} [includeAnnotations] - Use this parameter to include annotations to a result. For example: * or Microsoft.Dynamics.CRM.fetchxmlpagingcookie
773
+
* @param {string} [impersonateUserId] - A String representing the GUID value for the Dynamics 365 system user id. Impersonates the user.
0 commit comments