How to update the state of a incident record while saving the form via BR

roshini1
Kilo Guru

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

1 ACCEPTED SOLUTION

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.***

View solution in original post

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

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

roshini1_2-1689330840953.png

 

Yousaf
Giga Sage

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.***

Hi Yousaf,
I tried the below way,

roshini1_0-1689330716258.pngroshini1_1-1689330742730.png

but it didn't work