PartnerProcess

Submit to Approval Process

Sample Request Message-process Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/10.0 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573) 
Content-Type: text/xml; charset=utf-8  
SOAPAction: "" 
Content-Length: 510 
Expect: 100-continue 
Host: na1.salesforce.com 

<?xml version="1.0" encoding="utf-8"?>   
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:urn="urn:partner.soap.sforce.com"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
     <urn:SessionHeader>
        <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:process>
        <urn:actions xsi:type="urn:ProcessSubmitRequest">
           <urn:objectId>001D000000HRzKD</urn:objectId>
           <urn:comments>Please approve this account.</urn:comments>
        </urn:actions>
     </urn:process>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-process Call-Partner API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Thu, 24 May 2007 20:32:17 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:partner.soap.sforce.com">
  <soapenv:Body>
     <processResponse>
        <result>
           <entityId>001D000000HRzKDIA1</entityId>
           <instanceId>04gD00000008QqyIAE</instanceId>
           <instanceStatus>Pending</instanceStatus>
           <newWorkitemIds>04iD00000008QUjIAM</newWorkitemIds>
           <success>true</success>
        </result>
     </processResponse>
  </soapenv:Body>
</soapenv:Envelope>

Back to Sample SOAP Messages


Approve/Reject Item Submitted to Approval Process

Sample Request Message-process Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/10.0 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573) 
Content-Type: text/xml; charset=utf-8  
SOAPAction: "" 
Content-Length: 510 
Expect: 100-continue 
Host: na1.salesforce.com 

<?xml version="1.0" encoding="utf-8"?>   
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:urn="urn:partner.soap.sforce.com"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
     <urn:SessionHeader>
        <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:process>
        <urn:actions xsi:type="urn:ProcessWorkitemRequest">
           <action>Approve</action>
           <urn:comments>Approved. Proceed with the sale.</urn:comments>
           <urn:workitemId>04iD00000008QUjIAM</urn:workitemId>
        </urn:actions>
     </urn:process>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-process Call-Partner API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Thu, 24 May 2007 20:32:17 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:partner.soap.sforce.com">
  <soapenv:Body>
     <processResponse>
        <result>
           <entityId>001D000000HRzKDIA1</entityId>
           <instanceId>04gD00000008QqyIAE</instanceId>
           <instanceStatus>Approved</instanceStatus>
           <newWorkitemIds xsi:nil="true"/>
           <success>true</success>
        </result>
     </processResponse>
  </soapenv:Body>
</soapenv:Envelope>

Back to Sample SOAP Messages