Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

How can we prevent users from deleting/removing sales order lines in D365 FO

(2) ShareShare
ReportReport
Posted on by 230
Hi Experts,
 
Your expertise and assistance are needed to achieve the following requirement from user interface.
 
How can we prevent users from deleting/removing sales order lines, especially after the order has been confirmed or a purchase order has been created from the sales order.
  • Zubair Shaik Profile Picture
    230 on at
    How can we prevent users from deleting/removing sales order lines in D365 FO
    Hi Andre & Adis thanks for responding.
     
    Following the suggestion, we successfully implemented this through customization.
  • Verified answer
    André Arnaud de Calavon Profile Picture
    296,017 Super User 2025 Season 1 on at
    How can we prevent users from deleting/removing sales order lines in D365 FO
    Hi Zubair,
     
    Overall, you can use security configuration or develop security roles where you will not grant delete permissions on the sales order lines. In your scenario, I do understand that it will be based on the status of a sales order line. That can be done only with a customization. You can e.g. implement security policies using the eXtensible Data Security framework (XDS). You can read more about XDS on my blog page: XDS Archives - Dynamicspedia
     
    You can create a security policy where a user can view, insert, and update data where you can build a query with a condition when the user is or isn't allowed to delete records.
  • Verified answer
    Adis Profile Picture
    5,149 Super User 2025 Season 1 on at
    How can we prevent users from deleting/removing sales order lines in D365 FO
    Hi,
     
    You simply cant as far as I know. The idea is that the last confirmation is the last confirmed status of the order. Its absolutely valid to change things and create a new confirmation, making the latest confirmation obsolete.
     
    If you consider a customization, I would suggest to check the following parameter. Its fulfills a similar requirement, however, the lines have to be invoiced and not only confirmed. Therefore, I would let a developer check how it works and create a new parameter that works for confirmed sales order.
     
     
     
    There are some explanations in a bit more detail here:
     
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 171 Super User 2025 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 140 Super User 2025 Season 1

#3
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 127 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans