You need to sign in to do that
Don't have an account?
umeninnovation
How to send an outbound message on delete
I'm using outbound messages to insert/update contact records on a local database. But I would also like to delete (or deactivate) these records when they are deleted through the salesforce web interface. Is it possible?
I see there's a IsDeleted field in Contacts, but the delete action doesn't trigger the workflow that sends an outbound message.
Found the solution. It is simply not possible. You have to use the GetDeleted method in order to get the deleted and run this on certain intervals (depending on how often makes sense for your app. Mine will have to query every 10-30 min).
http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=21881&query.id=108508#M21881
All Answers
Found the solution. It is simply not possible. You have to use the GetDeleted method in order to get the deleted and run this on certain intervals (depending on how often makes sense for your app. Mine will have to query every 10-30 min).
http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=21881&query.id=108508#M21881
I normally create a [Objectname]_deleted Object and write a record to it by catching the before delete event on the deleted record Object. Then I create a Workflow with outboundmessage on that _deleted object.
Not the most beautiful solution but it works fine.
Good luck all.
can u send the code its helpful for me