You need to sign in to do that
Don't have an account?

Get Current Record ID
I want to Call an Apex Class from the Process Builder when the value of a field changes to a specific value.
How do I get the ID of the Current Record in the Apex Class?
How do I get the ID of the Current Record in the Apex Class?
Here you go:
ApexPages.currentPage().getParameters().get('id');
Thanks,
Pratik
All Answers
Here you go:
ApexPages.currentPage().getParameters().get('id');
Thanks,
Pratik
I will try it out. I was aware of this, but thought it would only work if the Apex class was 'called' from a VisualForce page.
Are you sure this will work if the Apex class is 'called' from the Process Builder?
Please try it out and let me know if you face any issues.
Thanks,
Pratik