You need to sign in to do that
Don't have an account?
callout about from queueable execute()
Tried doing a callout from an execute method in a queueable class and go the @future error -
I sounds like what i want to do may be doable if there's just some syntax to get the annotation.
Callout not allowed from this future method. Please enable callout by annotating the future method. eg: @Future(callout=true) 07:13:51.752 (8701449752265601)|SYSTEM_METHOD_EXIT|[1263]|System.Http.send(ANY)Is there a way to annotate the execute with "(callout=true)".
I sounds like what i want to do may be doable if there's just some syntax to get the annotation.
I'm thinking that there must be some other syntax that designates a queueable execute() as having a callout. But I don't see anything in the documentation.
Something like this:
public class AsyncExecutionExample implements Queueable, Database.AllowsCallouts { public void execute(QueueableContext context) { //your code including the callout } }
I was able to make a callout to external service inside the Queuable Apex class
The challenge is to schedule a job that will call the Queueable apex class: AsyncExecutionExample?
Any pointers will help.
Thanks.