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
NLTNLT 

Need to remove 'delete' option from Opportunity Product line item.

Remove 'delete' option from Opportunity Product line item as shown in the screenshot. User-added image
mukesh guptamukesh gupta
Hi Lakshman,

It's a salesforce standard functionality so we can't remove, 

If we remove delete permission from profile then this button will not visible but after that we can't delete Opportunity prodcut from ORG with this profile users.

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
NLTNLT
Hi Mukesh, 

Thanks for your response, Can you help to provide the alternate solution for this using custom code.
mukesh guptamukesh gupta
You need to create custom related list in LWC or AURA or VF after that you can use on page layout. but my suggesation you should share this limition with your client.

other wise you need to work more for create as it is Opportuity product related list with all standard buttons 

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh