Why are my REQ creating TASK with duplicate information?

tcotton
Giga Expert

when submitting a catalog request a Requested Item (REQ) and Catalog Task(TASK) is created.   I don't need a task created. How can I prevent this or what did I do wrong?

11 REPLIES 11

oharel
Kilo Sage

Hi Terrell,



1. Check your workflow - perhaps you have an activity that does that.


2. Check your BRs - again - maybe you have a br that runs and creates a task.


Edit: the BR should be on the sc_req_item table and should include an "insert()" statement.


Are all the tasks created the same?



harel


SamuelTse
Tera Guru

Hi Terrell,



You can take a look at the workflow attached to this service catalog item. There should be a "Create a task" activity in there. You can try to remove that box and see if it does what you need. However, I don't know how you are going to close the requested item. Requested Item is closed by the workflow when it runs to the end, like all the tasks are closed. If you don't have any task, the requested item will go right to "Closed Completed" as soon as it is created. I am not 100% sure about this behaviour since we always have tasks for service request.



Secondly, I wonder why you do want to use service catalog if all you need is a single record (requested item). You can use record producer to create a single record, requested item or what not, this way you are not tied into the workflow. You will have a bit more freedom with your record.



I hope it helps



Sam


tcotton
Giga Expert

Ok so the workflow has a create task.   I'm trying to alleviate the need to have both a RITM and TASK.


Catalog Task.JPG


The Create Task activity is what is causing your issue.



When you submit a catalog order, a SC Request is automatically and then 1 or many Request Items are created based on what you ordered.   The associated workflow to your catalog item is executed and if that contains tasks then they will be created.   If it doesn't then they won't.   So this said modify your catalog item's workflow to remove the tasks if applicable.