Skip to main content
10 events
when toggle format what by license comment
Sep 22, 2022 at 2:19 comment added David Reed @ArthurAlmeida please open a new question for your issue.
Sep 21, 2022 at 18:38 comment added Arthur Almeida @DavidReed I have one scheduler apex, one flow, and one apex to make integration, the scheduler calls the flow, and the flow calls the apex of integration, in this case, should give an error of "Callout from scheduled Apex not supported"?
Dec 12, 2018 at 22:27 vote accept j.koh
Dec 12, 2018 at 20:04 comment added Vinod Agrawal @j.koh - I think what you are asking is why this line String result = orderService.processRESTPayments(check.id,true,authToken); in the for loop in the execute statement is not executing. First thing to check is if there is data i.e. Orders with Scheduled_Payment__c = true. If it is then you need to look at the debug log for any errors. Hope this helps.
Dec 12, 2018 at 19:29 comment added David Reed @j.koh I am not sure what you are asking. You may need to open a new question and include the relevant code.
Dec 12, 2018 at 19:07 comment added j.koh I moved authToken to start() It completes successfully and sets my boolean "Scheduled_Payment__c" correctly but doesnt look like it hits: String result = orderService.processRESTPayments(check.id,true,authToken); Could it be my scheduled class? When i execute anonymously it works if i call the class but the scheduled class seems to be the problem
Dec 12, 2018 at 16:01 history edited David Reed CC BY-SA 4.0
added 277 characters in body
Dec 12, 2018 at 15:52 comment added David Reed Something like that, yeah.
Dec 12, 2018 at 15:40 comment added j.koh So move this line global final String authToken = orderService.getAccessToken(); into global Database.QueryLocator start(Database.BatchableContext BC, ) {? So it would look like this: global Database.QueryLocator start(Database.BatchableContext BC, ) { authToken = orderService.getAccessToken();
Dec 12, 2018 at 15:32 history answered David Reed CC BY-SA 4.0