- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 02:02 AM
I want to update my incident state to in progress, if the incident contact type is phone and state to new if it is coming via email. I want to achieve this via Business rule. I tried with before, but not working. Can someone help with code
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 04:00 AM
Try using INCIDENT STATE field and check.
state is not working for me as well but if you use Incident state it will update state field as well
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 02:14 AM - edited ‎07-14-2023 02:15 AM
Hi there,
It should be possible with a before business rule. Or even flow and possibly without any code at all.
Please do share what you tried and is not working. That way we can actually help you and guide you, instead of just pasting somewhere and you just copy/pasting it.
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 03:34 AM
I tried the below code without any conditions in BR , jut when to run as before and insert checked. Am getting the logs but it is not getting updated in the incident

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 02:24 AM
Hi Roshini,
Usually when it comes via email it sets contact_type (Channel) field to email. and you can easily use before Insert/update br to update state value without any script.
If I am not understanding correct please explain.
Mark Correct and Helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 03:32 AM
Hi Yousaf,
I tried the below way,
but it didn't work