How to set variables back to previous values after current.setAbortAction(true); in Business rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 02:04 AM
How to set variables back to previous values after current.setAbortAction(true); in Business rules.
After current.setAbortAction(true); form is not submitted, but priority was p4 and i changed to p5 and submitted, but it aborted form submission and priority is p5, i want it it change back to p4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 02:38 AM
changing priority via impact and urgency, yes am putting this line above abort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 02:42 AM
Ok, Can you just try this and check if it works
current.impact = previous.impact;
current.urgency = previous.urgency;
current.setAbortAction(true);
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 04:38 AM
Have you checked it?
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 05:02 AM
Since you have used current.setAbortAction(true) in your business rule, the record will not be submiited. Just reload the form to check the priority.
Thanks
Ravi
Please Hit like, Helpful or Correct depending on the impact of the response