function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SAPOCSAPOC 

Populate section fields in custom object with Opportunity Section

I have Multipicklist fields in XYZ section on opportunity.The same XYZ section is also present in another custom object .i need to populate the fields in XYZ section on opportunity to the section in the custom object.Opportunity(master) and this custom object has master -detail relationship.

 

can anyone suggest how to write the code for this .Thanks in Advance.

Best Answer chosen by Admin (Salesforce Developers) 
SAPOCSAPOC

I was able to achieve this by creating custom button on Opportunity related list for Custom object and by writing javascript code.

All Answers

MrTheTylerMrTheTyler

I would suggest using a trigger or fieldupdate workflow.

 

 

~Tyler

SAPOCSAPOC

I cannot use Worlflow field update as the field should be updated with Mutipicklist values from opportunity.

 

I would appreciate if anyone can help me to write trigger code.

SAPOCSAPOC

I was able to achieve this by creating custom button on Opportunity related list for Custom object and by writing javascript code.

This was selected as the best answer