You need to sign in to do that
Don't have an account?
Nihar Sharma
Clone record with its related list by clicking on custom button on that record
Hi,
i have created one button on record top beside the clone button,
when clicked, execute code that would make a new version record with the same name and append today's date on the end of the name to distinguish it from the original.
How should i do this ?
Thank you very much in advance
i have created one button on record top beside the clone button,
when clicked, execute code that would make a new version record with the same name and append today's date on the end of the name to distinguish it from the original.
How should i do this ?
Thank you very much in advance
- Create global webservice apex class
- Call your apex class from the javascript button
Step1:Below is the sample apex class, which will clone the Account record along with its related contact record.
If you want other related object similar to Contact modify the apex code, you have the sample for Contact, easily you can add other different object
Step 2:
Now create a java script button to call the apex class
All Answers
- Create global webservice apex class
- Call your apex class from the javascript button
Step1:Below is the sample apex class, which will clone the Account record along with its related contact record.
If you want other related object similar to Contact modify the apex code, you have the sample for Contact, easily you can add other different object
Step 2:
Now create a java script button to call the apex class
"A problem with the OnClick JavaScript for this button or link was encountered
expected }"
i tried all the thing but it still comes.please help