I've updated opportunity records in a batch class.I called the batch class from a class.Can I pass the updated record values back to the class from which I called the batch class?
I have a bad idea. You can create new sobject JobResult with fields: Apex_Batch_Job_ID, UpdatedRecordsId. When you run batch, remember job id, and create new JobResult with this job id. In batch you can query this record and update UpdatedRecordsId fields. But this is bad idea. Maybe you have problem with architecture.
No, it's impossible, apex Batch it's async job.
Thanks,
Alex
All Answers
No, it's impossible, apex Batch it's async job.
Thanks,
Alex
Thanks,
Alex