The CreatorCon Call for Content is officially open! Get started here.

how to write conditions for create task activity

Rajyalakshmi
Tera Expert

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajyalakshmi 

if this is for catalog item then your workflow should be on sc_req_item table

why it's on sc_task table?

Also why not use flow designer as many customers are moving towards flow instead of workflow?

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes @Ankur Bawiskar ,we are also migrating workflows to flow designer.this are old workflows ,user raised an incident to fix the issue .so working on it .And ,yes you are right ,workflow need to be on sc_req_item table ,but for our case it is implemented in sc_task.

@Rajyalakshmi 

since your workflow triggers on sc_task

what's your actual business requirement?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

first it will create one sctask ,this is automated task will close depends on API result .after closing of this sctask we are creating another sctask using create task activity ,this is manul fulfillment task .fulfilment team will close this manul task .after closing this task i need to end the this workflow .but it is not happening after manul task close ,the workflow still showing on the same activity.