This repository was archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Sage_API_CRM_Response_1_0
Marcus Corner edited this page Dec 9, 2015
·
1 revision
The CRM Response contains the respective items that were sent within the request, but they contain either the populated created/updated object or any error messages that may have occurred.
Field | Type | Accessibility |
---|---|---|
Accounts | List<Sage_API_Account_1_0> | global |
ErrorAccounts | List<Sage_API_Account_1_0> | global |
Products | List<Sage_API_Product_1_0> | global |
ErrorProducts | List<Sage_API_Product_1_0> | global |
Contacts | List<Sage_API_Contact_1_0> | global |
ErrorContacts | List<Sage_API_Contact_1_0> | global |
Sage_API_CRM_Request_1_0 request = new Sage_API_CRM_Request_1_0(); request.Config.ErrorHandling = Sage_API_Enums_ErrorHandling_1_0.FailOnFirstError; Sage_API_Account_1_0 account = new Sage_API_Account_1_0(); account.Reference = new Sage_API_Reference_1_0(null, 'Amazon', 'Amazon'); request.Accounts.add(account); Sage_API_CRM_Response_1_0 response = Sage_API_Dimension_Helper_1_0.ProcessAccounts(request); for(Sage_API_Account_1_0 accountItem : response.Accounts) { } for(Sage_API_Account_1_0 accountItem : response.ErrorAccounts) { }