function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jiri1.3966104396934639E12jiri1.3966104396934639E12 

Outbound messages problem

Hello,

I'm setting up a web service for a SF outbound messages. I have it working now, but noticed a problem:

message is POSTed to the specified url if it for some reason fails the repeated calls are GET request without any data. So they repeatadly fail with "Bad request" error.
Ashish_SFDCAshish_SFDC
Hi , 


try adding the following line after req.setEndpoint(url);

req.setHeader('Authorization', 'OAuth '+UserInfo.getSessionId());=

See more in the thread below, 

https://developer.salesforce.com/forums?id=906F000000099zbIAA


Regards,
Ashish