+ Start a Discussion
osf_teamosf_team 

Outbound Messaging: Sending acknowledgment to Salesforce

Hi,

There is a unique notification ID that comes with the outbound message. Is there any way to acknowledge that particular notification ID?

We would like to acknowledge the message once we recieve the notification. And, we want to send the acknowledgement on the seperate thread.

Thanks
Shalindra Singh
viruSviruS
Hi Shalindra ,

You need to implement the listener   https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_listener.htm
osf_teamosf_team
Please find below the sample request message:
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<notifications xmlns="http://soap.sforce.com/2005/09/outbound">
			<OrganizationId>00D90000000xxxxxx</OrganizationId>
			<ActionId>04k90000000CcobAAC</ActionId>
			<SessionId>00D900000ZaxxxxxxxxxxxxxxxxxxxxxxxxlYOpDroIM5p</SessionId>
			<EnterpriseUrl>https://ap1.salesforce.com/services/Soap/c/34.0/00D90000000qrXJ</EnterpriseUrl>
			<PartnerUrl>https://ap1.salesforce.com/services/Soap/u/34.0/00D90000000qrXJ</PartnerUrl>
			<Notification>
				<Id>04l9000001FvEFRAA3</Id>
				<sObject xsi:type="sf:Account" xmlns:sf="urn:sobject.enterprise.soap.sforce.com">
					<sf:Id>0019000001S1aZOAAZ</sf:Id>
					<sf:AnnualRevenue>200000.0</sf:AnnualRevenue>
					<sf:CreatedById>00590000002KQaoAAG</sf:CreatedById>
					<sf:CreatedDate>2015-07-14T06:57:30.000Z</sf:CreatedDate>
					<sf:IsDeleted>false</sf:IsDeleted>
					<sf:LastModifiedById>00590000002KQaoAAG</sf:LastModifiedById>
					<sf:LastModifiedDate>2015-07-14T06:57:30.000Z</sf:LastModifiedDate>
					<sf:LastReferencedDate>2015-07-14T07:01:14.000Z</sf:LastReferencedDate>
					<sf:LastViewedDate>2015-07-14T07:01:14.000Z</sf:LastViewedDate>
					<sf:Name>demo2</sf:Name>
					<sf:OwnerId>00590000002KQaoAAG</sf:OwnerId>
					<sf:PhotoUrl>/services/images/photo/0019000001S1aZOAAZ</sf:PhotoUrl>
					<sf:SystemModstamp>2015-07-14T06:57:30.000Z</sf:SystemModstamp>
				</sObject>
			</Notification>
		</notifications>
	</soapenv:Body>
</soapenv:Envelope>

Thanks
Shalindra Singh
osf_teamosf_team
Hi ViruS,

My steps are simple.
I am consuming WSDL and creating a Java client deployed in application server. I get the end point URL which I update back into Salesforce.com
Now salesforce is able to publish message to suscribed end point.
I received the message like above (please see the sample).
once I received the message, how can I send the response back to Salesforce.com?
 
Mina Michel GorgyMina Michel Gorgy
Hi Shalindra,

Can you please update us here what did you do then? A snippet of the solution would be great as well!
Prateek.GargPrateek.Garg
Hi Shalindra/Mina,

Can you please post here the snippet of the solution?
osf_teamosf_team
Hi Prateek / Michel,

Since Salesforce.com does not expect acknowlegement back and does not associate it with unique notification id that we get (that's my understanding) so I used Object id to update the one the field (flag) of that Object to acknowlege that records has successfully reached to target application.

Thanks
Shalindra Singh