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

custom clone button with selected fields on Lightning experience
Hi All,
I am new to salesforce lightning experience, I would like to create a custom clone button with selected fields only on opportunity, does anyone know to do that? Thanks.
I am new to salesforce lightning experience, I would like to create a custom clone button with selected fields only on opportunity, does anyone know to do that? Thanks.
can you please do more specific about your requirement in details
thanks
As current clone button on Opportunity is clone all the fields. I only want certain fields to be clone not all the fields on opportunity, therefore I need to create a custom clone button to do that.
There are some forum disscussed how to create that on salesforce classic, I followed and able to do what I want on salesforce classic, but it does not work on lightning experience.
Thanks.
Following codes should resolve your issue:
Create Lightning component: Helper: Com Controller:
Class:
Create Lightning component action:
When you will use this action pcikListTest__c and CampaignId will be prepopulated.
So I am using force:createRecord to create new opportunity record with prepolated values. You can add as many fields as you like.
Thanks , can we do the cloning for activity object .I want cloning of event and task how to do that.Please let me know.
Any ideas on what could be wrong?