You need to sign in to do that
Don't have an account?
Jonathan Spink
How do I send parameters to a queueable class?
I want to launch my code as a queueable class, but I need to include a parameter. I have tried doing this but at some point I have to make a call that doesn't include parameters, i.e.
public void execute(QueueableContext context) {...
}
Is there any way round this?
public void execute(QueueableContext context) {...
}
Is there any way round this?
You can pass paramters you want to the class constructor for example
All Answers
Recommend reviewing https://salesforce.stackexchange.com/questions/286463/queuable-apex-logic-in-constructor-or-execute-method
Related:https://github.com/BobHatcher/QueueableUtilities/tree/master/MyQueueable/src/classes
If this information helps, please mark the answer as best. Thank you
You can pass paramters you want to the class constructor for example