Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Set Additional Comments when INC state is resolved.

Naveen87
Tera Guru

Hey Developers,

 

I want to set a string under Additional comments on Incident form when Contact type  = Event & state is resolved.

I tried below script but no luck

Please suggest.

 

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Naveen87
Tera Guru

This worked.

Thank you  - Anurag Tripathi for ur time on this.

 
 
 

find_real_file.png

View solution in original post

7 REPLIES 7

I just tried this in my PDI.

It worked until I put the state value condition.

Can u plz help with that?

 

 

 

 

I removed string also from 6 still no luck

if(type=='phone'|| state==6).

 

 

It just worked.

 

I used && now.

 

 But in my actual instance. I need it on OnChange.

Plz help with that.

Naveen87
Tera Guru

This worked.

Thank you  - Anurag Tripathi for ur time on this.

 
 
 

find_real_file.png

cheers mate!!

Close the thread by marking the most appropriate answer so that anyone else in the similar situation can refer to this thread.

-Anurag