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
TheProjectSolutionTheProjectSolution 

Need Opportunity Button to Send Multi-Piclist values to another object

Hi all,

We have a mostly-successful custom Opportunity button called "Convert to Contract" installed that passes Opportunity field data to the "New Contact" page for assisted creation of related new Contact records.

This mostly works great, except if the source Opportunity record has multiple values in the multi-picklist field "Opportunity.Revenue_Line_Items__c", the values are NOT passed at all to the Contract field "Contract.Revenue_Line_Items__c"

Our existing button URL is:
/800/e?retURL=%2F800%2Fo&00N70000002TSz9={!Opportunity.Amount}&00N70000002TRfD={!Opportunity.Revenue_Line_Items__c}&CF00N70000002VZrb={!Opportunity.Name}&ctrc7={!Opportunity.Account}&CF00N70000002GKcp={!Opportunity.OwnerFullName}&RecordType={!Opportunity.Contract_Record_Type__c}&00N70000002Heje={!Opportunity.Region__c}&00N70000002TYrf={!Opportunity.DRW__c}&00N70000002TYrp={!Opportunity.Incubator_Project__c}&CF00N70000002GRtk={!Opportunity.Campaign}&00N70000002UUaZ={!Opportunity.Funder_Ref__c}&00N70000002UUlN={!Opportunity.Total_Number_of_Payments_Expected__c}&00N70000002TSzY={!Opportunity.Expected_or_Funded_Amount__c}

I understand that this help topic below provides a general solution to this problem, but I don't understand how to merge this solution with our existing button URL. What should the final button URL or syntax be to make this work, and should the button type be "on-click javascript" or "URL"?

http://help.salesforce.com/apex/HTViewSolution?id=000004172&language=en_US

digamber.prasaddigamber.prasad

Hi,

 

You are referring to correct URL for the solution. To answer, whether it will be 'On-Click Javascript' or 'URL', it will definitely be 'On-Click Javascript'.

 

While creating a new button, one new button create page, please select 'Execute JavaScript' for 'Behavior' option and 'OnClick JavaScritp' for 'Content Source' option and then follow the above URL mentioned by you.

 

Hope it will help you.

 

Happy to help you!

 

Regards,

Digamber Prasad