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 :
Service | Customer Service, Contact Center, Fie...
Answered

Hide Delete Button when Work Order are Close

(0) ShareShare
ReportReport
Posted on by 95

Hi Team,

I want to disable delete button one work order are status close. because after close work order not allowed to delete any uploaded document.

I try to using Ribbon Workbench but not able to do that.

pastedimage1629376714686v1.png

I have the same question (0)
  • Verified answer
    Fannie30 Profile Picture
    2,990 Moderator on at
    RE: Hide Delete Button when Work Order are Close

    I'm not a developer, but I believe the way to accomplish this is with javascript.  That's how I've done it with with other functionality in Field Service

  • Suggested answer
    Gabriel Dias Junckes Profile Picture
    2,428 on at
    RE: Hide Delete Button when Work Order are Close

    Hi Jacky.

    There is a similar thread here, it might help.

    community.dynamics.com/.../ribbon-workbench-display-rule-based-on-field-containing-data

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Hide Delete Button when Work Order are Close

    Hi Jacky,

    The work order entity and sharepoint document entity is 1: relationship, work order is parent for document.

    pastedimage1629422947493v1.png

    So what you want is hiding sub-grid Delete button based on Parent status.

    If so, you can refer following links to achieve it:

    (+) Hide SubGrid New Button button based on Parent status - Dynamics 365 Sales Forum Community Forum

    Dynamics 365 CRM Hide Subgrid Ribbon Button based on Parent Entity Field value – xrm CRM Dynamics (wordpress.com)

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at
    RE: Hide Delete Button when Work Order are Close

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

     pastedimage1630027805120v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Hide Delete Button when Work Order are Close

    Jacky, that's because in the SharePoint site the logged in users permissions allow them to delete the document.

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 42 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 40

#3
CU23101130-0 Profile Picture

CU23101130-0 17

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans