Announcements
No record found.
Hi all,
I need to add a custom JavaScript command to the Close Case button, but can't see it anywhere in Ribbon Workbench - can anyone advise as to why this may be? I've hidden a few of the other buttons and created a new one but cannot find Close Case anywhere.
Thanks,
Matt
Hello Matt,
Can you please provide the screenshot?
Hi Matt,
You have to Resolve Case or Cancel Case. You can create a custom button.
Please refer the link below for sample code.
docs.microsoft.com/.../sample-close-incident
community.dynamics.com/.../how-to-close-incident-using-webapi
Best Regards
PG
Thanks guys,
I thought as Pankaj has said that by default you had to either Resolve or Cancel, but OOB I could only see the Close Case button on the form, despite seeing Resolve Case and Cancel Case in Ribbon Workbench. The Cancel Case button you see here is a custom one I created which is fine, but I still need a way to either edit or hide the Close Case button.
I also checked the RibbonXml but can't see anything that helped :/
Hi guys,
Thanks for your responses, I have now resolved this. By using the Command Checker (super useful tool!) I was able to track the source of the button down to the Customer Service Team Member managed solution. I simply deleted the solution and the command bar is back to normal.
Thanks
For anybody else needing help with this, we needed to have the Customer Service Team Member app installed, so uninstalling it was not an option. Although you cannot see this button in the Ribbon Workbench, you can still create a custom command with the same Id (Mscrm.IncidentClose), which we found using the "Command Checker" tool, thanks for that tip! You can then add Display/Enable rules to that command. Our goal was to hide this button in the "Customer Service Team Members" app and use our own custom Resolve case button, and this worked perfectly.
Thanks PaladinMattt, this is very useful.
Where did you add the Display/Enable rules for that command?
Is it possible to show the OOB Resolve Case item using the same rules?
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
NeerajPawar 31
Tom_Gioielli 19 Super User 2026 Season 1
11manish 16