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
ran67ran67 

creating custom button in application

Copy Opportunity and Opportunity products into a New Invoice with Invoice Line Items By clicking a button on Opportunity a new invoice should be created with Line Items. The data should be populated from opportunity and opportunity Product(Lines).
Best Answer chosen by Admin (Salesforce Developers) 
NzgonNzgon

You can have Opportunity type='Invoice' and use standard clone button available for Opportunity to clone existing Opp with Products to new one that is diferent type.

 

Nash