How to trigger a flow to create a cmdb record via updating Task record (without new sc_task)?

jawnmower
Tera Contributor

I have created a Flow for a VPN request, where I create a Task record (working) and I create a cmdb_ci_vpn record once the engineer marks the Task as "closed complete" (not working). I would prefer to trigger the cmdb_ci_vpn record's creation directly from the Task record being updated, rather than make a new sc_task and and update that. Weirdly, I tried making an sc_task record and it created the cmdb_ci_vpn record when the Task record was marked closed complete, as I wanted it to. Why is that? and why is the flow I have not working, even though it make "logical" sense?

1 ACCEPTED SOLUTION

newhand
Mega Sage

@jawnmower 

 

When step4 finished ,step5 starts to run without any time lag (the status of the task record  is still new ..)。

 

You should use "Wait For Condition"  spoke in step5 to wait until the status of task record changes to "closed complete.

 

 

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

View solution in original post

2 REPLIES 2

Uday Soni05
Tera Guru

Hi @jawnmower,
Do you want to create VPN record once sc_task is closed
If you want that then i don't see you have created any sc_task for your request in flow

We have Wait for Completion check box in create catalog task Action where flow will wait for task to be completed once task is completed you can proceed with creating cmdb(vpn record) or whatever you want.

We can make use of wait in create catalog task Action in Flow Designer

Screenshot 2023-10-16 at 11.05.45 AM.png

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Uday

 

newhand
Mega Sage

@jawnmower 

 

When step4 finished ,step5 starts to run without any time lag (the status of the task record  is still new ..)。

 

You should use "Wait For Condition"  spoke in step5 to wait until the status of task record changes to "closed complete.

 

 

 

 

 

 

Please mark my answer as correct and helpful based on Impact.