I'm working on a schedulable class that makes and http callout, I need my schedulable method to start my @future method with my callout. The error I'm getting is
" Method does not exist or incorrect signature: returnAuth()"
global void execute(SchedulableContext sc) { returnAuth(); } @future(callout = true) static void returnAuth(string loginstring, string Idstring) { string xAuthToken; string st_Today; If(loginstring != null) { HttpRequest req = new HttpRequest(); HttpResponse res = new HttpResponse(); Http http = new Http(); req.setMethod('POST'); // Method Type req.setEndpoint('web210.ntree.com/twig-cstc3/v1/login'); //salestree url req.setHeader('Content-Type', 'application/json'); req.setHeader('{ "username" : ', loginstring); res = http.send(req); Anyone know how i can make this work?
returnAuthtakes two arguments loginString and IdString. Provide those two arguments inreturnAuthmethod to remove this error.globalmodifier is not required unless doing managed package;publicwill suffice