« first day (925 days earlier)      last day (84 days later) » 

5:49 AM
News question 101 - figuring out how I can extend a class in a package (to which I have the source code) - I see global override function/method in the class - can I override it in my class?
s/News/Newb
 
6:16 AM
how to resolve this System.CalloutException: HTTP method DELETE doesn't support output
I set the httprequest method to 'DELETE', and set the body with a data
 
Make your body empty
 
how about the id? that I'm going to pass?
I'm passing the id of a user to delete a record to the other server.

HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();
Http http = new Http();

req.setEndpoint('testsite.com/api/User');
req.setMethod('DELETE');
req.setBody('29');
req.setHeader('Content-Type', 'application/json');

try {
res = http.send(req);
}
catch(System.CalloutException e) {
System.debug('Callout error:' + e);
}

System.debug(res.getBody());
 
can you pass it as a GET parameter ?
 
yes, but I need to use the delete
 
6:31 AM
I'm sorry I am not very familiar with that
 
there is no problem in using the get, but on the other api we are using the delete method, which is I needed to use delete in sfdc for the other api to directly call its delete method.
 

« first day (925 days earlier)      last day (84 days later) »