In Salesforce Field Service, the Work Order Line Item (WOLI) object has a master-detail relationship with the Work Order object. Salesforce enforces WOLI edit and delete operations based on the user's permissions on the parent Work Order — not on the WOLI object itself.
WorkOrderLineItem is on the detail side of a master-detail relationship with WorkOrder. In a master-detail relationship, the detail record inherits edit and delete access from the master. This means:
This behavior applies in Lightning Experience, the Field Service mobile app, and partner communities.
There is no declarative way to allow Work Order editing while blocking WOLI deletion. Salesforce does not support independent delete permissions on WOLIs separate from Work Order Edit access. A custom Apex Before Delete trigger on WorkOrderLineItem is the only supported workaround for granular control.
To prevent users from deleting WOLIs, remove Edit permission on the Work Order object from the affected profile or permission set.
Important: Removing Edit on Work Order also prevents users from editing Work Order records. Evaluate the business impact before making this change. If users need to edit Work Orders but not delete WOLIs, use a Before Delete Apex trigger on WorkOrderLineItem instead.
005386959

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.