web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

(3) ShareShare
ReportReport
Posted on by 259
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.
I have the same question (0)
  • Verified answer
    Adis Profile Picture
    6,069 Super User 2025 Season 2 on at
    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

     
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,132 Super User 2025 Season 2 on at
    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.
  • Zubair Shaik Profile Picture
    259 on at
    Hi Andre & Adis thanks for responding.
     
    Following the suggestion, we successfully implemented this through customization.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans