function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
I have a requirement where I have to call my method (Invocable) inside Batch Execute() method.
Is it possible?
An InvocableMethod must be static, so you can't not create an instance. You can, however, combine the logic of both in to a single class.
Refer the below link.
https://salesforce.stackexchange.com/questions/346460/create-invocablemethod-inside-class-that-implemented-batchable-and-invoke-new-i
If this helps, Please mark it as best answer.
Thanks!!