I want to prevent the deletion of Work order Products in the Work order screen in Dynamics 365 based on the field (Line status) value, if the "Line Status" value meets the criteria then the system should allow deleting otherwise a message box should be displayed. please help me to do it via Javascript. thanks a lot
I think there are two easy way to do this:
- Via workflow
- Adding a custom display rule or custom command to the button in ribbon workbench
Hi Irfan K,
Do not you think workflow or plugins are easy ways to solve this problem instead of the JavaScript.
If you don't mind, do you have some code samples?
Hi Irfan,
You can throw your alert using a web resource and calling it in the button click with the condition check.
Please follow the below steps:
Test the button
If this answer helps you, like and verify my answer
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156