When working with accounts and account plans (master plan instances) within the Salesforce user interface, you can either commit to Aria or save as a draft within Salesforce. These actions are available using the Commit and Save as Draft buttons on the Add/Modify Plans screen. Using the the Commit button synchronizes the account or plan data between systems.
However, you may have a business need to update or create accounts and/or account plan instances (master plan instances) outside of the Salesforce instance. In this case, you may choose to update Salesforce programmatically. The information below includes required information for the calls to sync systems.
The external call to commit is:
ASF3.AriaGlobalOperationResource.CommittoAria
The following restrictions apply:
The <opportunity_id> parameter is required in the external call and is the unique identifier of the opportunity. You can obtain the opportunity ID from the URL of the page where the opportunity is displayed. You can only specify one opportunity per call.
If updating an account, the <actionTaken__c> field for the account object is required. From the allowable values listed below, include the value for each change made. This supports tracking for all account plan and billing group changes.
For example:
Example Call
The following call commits the "006c000000DhklmAAB" opportunity:
list<Map<String,String>> executionMessageMap ASF3.AriaGlobalOperationResource. CommitToAriaV1(oppId, null);
The programmatic commit returns a list of key value pairs indicating the success or failure of each API call. The key value pairs have the error code and the error message for each API used in the programmatic commit. An error code of "0" indicates success.
Error Code | Description |
---|---|
900 | Account Plans do not exist on opportunity. |
901 | Commit is not allowed on opportunity. |
902 | Opportunity is already closed. |
903 | Invalid opportunity ID provided. |
904 | Could not find a valid Aria API configuration. |
905 | Job has been successfully initiated to commit changes over Aria. |
907 | No changes on opportunity to commit. |
101010 | <exception_message>. This is the Salesforce message returned for any exception that happens during a Salesforce DML/callout. |