Stop Inbound action from updating case when state is closed complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 08:13 AM
Hello,
We have an inbound action that updates HR Case record when user replies. However, we are trying to limit the inbound action to only update if the case state is not equal to 3, 4, or 7. If this condition is not met then inbound action should be skipped/not update the case.
So far this is what i have. Any help is much appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 08:33 AM
Hi Rocio,
Sorry, not quite sure what your ask is here. Is your current code working for when state is not equal to 3?
If it is already working for state is not equal to 3 and you just want to expand to in 4 and 7, then you can update your if statement to:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 09:32 PM
Hi Rocio 2,
Did you get a resolution to this?
I can see immediately that you probably need to change:
if (current.getTableName() == "hr case"){
to:
if (current.getTableName() == "hr_case"){
But other than that, I am finding that any scripting here does not seem to stop the update being associated with the case even though it is closed.
We are using