Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

how to write conditions for create task activity

Rajyalakshmi
Mega Guru

I have one query ,can you please help.

I have one workflow attached in sc_task table.i am unable to use catalog task activity in this workflow ,so i have used create task activity and mapped the table as sc_task.now in this create task activity how to write conditions for close complete and close incomplete.

i tried activity.result='3'//close complete and activity.result='4'// close incomplete .But my workflow got stuck ,it is not moving to next activity.

5 REPLIES 5

Nilesh Pol
Kilo Sage

@Rajyalakshmi 

Have you used "wait for condition" activity after "create task" activity.?

if no, then add "wait for condition" for sc_task table and add condition State is one of "close complete OR incomplate"

 

You’ll need to store the created task’s sys_id into a variable using the “Create Task” output — usually activity.result holds the sys_id of the created record