A task should be created while submitting termination ticket

divyal09
Tera Contributor

A task should be created while submitting termination ticket for Asset team with the details of hardware which are assigned to user in user profile with the details and the list of the hardware assigned to that user.

How can we write script for this one in the workflow.

3 REPLIES 3

Mark Manders
Mega Patron

By not doing it in the workflow, but move this part to the flow designer. The trigger is the termination ticket, so you have that already and in the flow designer you can do an easy lookup to the hardware it is referring to, add all the the necessary details with drag and drop and do the same for the user.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

A workflow is already designed for the termination tickets. I just need to add this condition

Why? Just because something is already there, doesn't mean it's the best solution. You can keep everything in your workflow as is, just make the part through the flow designer. You can capture the outcome in the workflow if needed (closing of task, or something like that). The fact that something is already there shouldn't keep you from providing a working solution in an easier way. A previous design can turn out to be a wrong decision because of added functionality. 
You are there to provide the solution that is required. The 'how' is up to you. And that you don't rebuild the entire thing into flow designer, I can understand (that should have been decided up front, but wrong decisions are made everywhere), but using flow designer to make your work a lot easier now this requirement comes around the corner, is nothing more than good sense.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark