You need to sign in to do that
Don't have an account?
nishant shrivastava 40
I need to call Custom Button from Apex Class
Hi,
I have a requirement where i want to call Custom button from Apex class. kindly suggest.
I shall be grateful to you for your kind cooperation.
Thanks and regards
I have a requirement where i want to call Custom button from Apex class. kindly suggest.
I shall be grateful to you for your kind cooperation.
Thanks and regards
Can you please elaborate your requirement here?
VisualForce page
In case you find any other issue please mention.
If you find your Solution then mark this as the best answer.
Hi Guys, thanks for your kind responses. The requirement is:
i have created a custom button to call another functionality. I want to call this button from apex class so that i can use it in Trigger. kindly suggest :)
Why you need to call the custom button instead you can directly call its method from Apex class.
Please check the below sample code.
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Where this button will display like visualforce page/Lightning component?
Hi Nishant,
you should translate the functionallity of this button to apex code, then you can call this button "function" in the apex class!
Which functionallity do this bitton?
regards,
Omar
I still did not understand you.
what will happen if the user click on the Button?