How to set variables back to previous values after current.setAbortAction(true); in Business rules.

swathigangadhar
Tera Expert

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.

8 REPLIES 8

changing priority via impact and urgency, yes am putting this line above abort.


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


Have you checked it?



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


raves12
Kilo Sage

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