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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines

(0) ShareShare
ReportReport
Posted on by
Hi all!
 
We have a requirement to block the Remove button from Sales Order Lines for many user roles.  Was able to do this for Sales Orders (I believe SalesTableDelete was the Display Item), but I'm having trouble finding what needs to be done via Security Configuration for Sales Order Lines.  Was hoping it was SalesLineDelete, but not working.   Screen shot below of Remove field:
 
 
If you have an answer, maybe provide security screen shot
 
Thanks in advance!
 
Paul
  • Suggested answer
    GirishS Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    Hi Paul,
     
    LineStripDelete button is command button. Its not display menu item button like Sales table.
    In that case I guess you can set the access level to table.
    Navigate to Security Configuration form.
    Select your privilege >> Click on tables >> Add references >. Select SalesLine table and set it all to Deny.
     
    Another option will be adding the SalesLine table to the Privilege under permission node and set the access level.
     
    Thanks,
    Girish S.
  • GirishS Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    I think setting the table to Deny will restrict the creation of record also.
    So better option will be doing the changes from the backend.
     
    Thanks,
    Girish S.
  • Paul V Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    Hi Girish
    Thanks for looking into this for me.
    Yes, looks like denying Delete from SalesLine table grays out the Remove sales line button.
    But, it blocks access to the Order Lines (salesline) table (even after explicitly granting Read, Update and Create).  I don't understand why?
     
     
     
  • GirishS Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    Yes, then it must be done from the backend only.
     
    Thanks,
    Girish S.
  • André Arnaud de Calavon Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    Hi Paul V,
     
    Instead of some deny permissions, have you tried creating a new privilege for the sales orders and grant permissions for Read, Update, Create and not Delete? In that case, the data sources on the form will inherit the same permissions as granted via the privilege.
  • Community member Profile Picture
    on at
    Block/Gray Out "Remove" Button (linestripdelete) from Sales Order Lines
    Looks like you have a custom privilege called "Block From Deleting Sales Orders (TOG). Can you share the process for that similarly to what you have done below for the line item? 

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans