Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 135
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
  • 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? 
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,602 Super User 2024 Season 2 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.
  • GirishS Profile Picture
    GirishS 27,816 Super User 2024 Season 1 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.
  • Paul V Profile Picture
    Paul V 135 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
    GirishS 27,816 Super User 2024 Season 1 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.
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,816 Super User 2024 Season 1 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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans