I recently upgraded to CRM 2016 from 2011. I had a custom script that executed only when the "Resolve Case" button was clicked to validate that certain fields were filled in. This was done by having the script run when the form was saved and checking to see that the saveMode had a value of 5.
Unfortunately this no longer works in CRM 2016 because the saveMode always has a value of 1 during a normal save operation and when resolving the case so I am looking for alternative solutions.
A potential easy solution is to move the JavaScript to run when the "Resolve Case" button is clicked. I can do this using the ribbon workbench to add an action to the button but what I cannot figure out how to do is cancel the subsequent default action if validation fails so the user cannot continue to close the case. Is this possible? I could also manually call the default script from within my own script but I could not figure out how to do that from CRM 2016 either. If neither of these can work are there any other solutions to validating a case before resolving it?
I have seen that synchronous workflows are an option but there is some extra logic in the JavaScript that is not directly supported by workflows so I would like to avoid that if possible.
*This post is locked for comments
I have the same question (0)