0

While resolving the case if we use prmContext.getEventArgs().preventDefault(); to stop the case getting resolved , it keeps processing and nothing happens.

Has somebody also faced this issue.

Manish
  • 19
  • 3
  • Are you using this code https://crmbusiness.wordpress.com/2012/03/14/crm-2011-adding-validation-to-the-resolve-case-button/ ? I'd guess the Turbo Form is interfering. – Alex Nov 07 '16 at 13:57
  • I am doing the same but the requirement is different and in crm 2016 there is no point in checking the getSaveMode() as it returns same value for both resolve case and save. I have some html grid and I am checking if at least one is not selected stop the resolution of case. – Manish Nov 14 '16 at 13:12

1 Answers1

0

I never had to do this customization in particular, but I'd put the logic in a plugin firing on Create of IncidentResolution entity (post-operation so you can have the Images available).

Throw there and the resolution flow should be rolled back.

Alex
  • 23,004
  • 4
  • 39
  • 73