You need to sign in to do that
Don't have an account?
margotq
Activating a Contract via the API
I am having difficulties activating a contract through the API. The documentation says to first create the contract in a non-activated status, which I am doing and which works. The documentation then says to change the 'Status' value of the contract to an activated status in order to activate.
When I try to change the status value to either the name value ("Activated") or the Id for the status from the ContractStatus set, I get the following error:
"invalid cross reference id"
If anyone has activated contracts before, some insight would be very helpful.
Thank you,
Margot
When I try to change the status value to either the name value ("Activated") or the Id for the status from the ContractStatus set, I get the following error:
"invalid cross reference id"
If anyone has activated contracts before, some insight would be very helpful.
Thank you,
Margot
when you create a new approval request, the staus of the contract will be updated.
// ajax
[... populage a new contract object ..]
var saveResult = sforceClient.Create([newContract]); // create new contract
var newRecordID = saveResult[0].id;
var newApproval = new Sforce.Dynabean("Approval"); // move into the "review" stage by adding an approval
newApproval.set("ParentId",newRecordID);
newApproval.set("Status","Pending");
var saveResult = sforceClient.Create([newApproval]);
now, you can see the contract stage has been updated by the act of adding an approval request.
Is it necessary to create an approval request before it is possible to "activate" a contract? Via the interface I can immediately activate a contract and bypass the approval steps.
I am simply trying to turn a non-activated contract into an activated one, and all of the documentation I am reading says that changing the contract's status directly should affect activation...
Thanks for your help.