Software request triggers the two workflows, how shall I trigger only my workflowfff

Raju Singh1
Tera Expert

Hi Experts,

I have designed a workflow for ordering Software. The process is that it opens a request item then an RITM.

I am facing a problem that whenever I request for a software, it opens two workflows for a service Request, one is oob workflow Service Catalog Request, and my designed workflow SC-Software Request wf. As a result it automatically sets the Approval value as Approved due to the oob process Runs.

I am unable to separate it. I want only my designed SC-Software Request wf to Run. The only method is to quote a price of the software I think which If I increase more than $1000, then it will not set the value automatically to be approved. Is there a way I only want my workflow to Run for this Request.

Capture1.JPG

Capture2.JPG

Capture3.JPG

Regards,

Raju Singh

1 ACCEPTED SOLUTION

Use below



var title = '';


var desc = '';


var ritem = new GlideRecord('sc_req_item');


ritem.addQuery('request',current.sys_id);


ritem.query();



while (ritem.next())


{


        if (title=='')


        {


                  title = ritem.cat_item.getDisplayValue();


                  desc = ritem.cat_item.category.getDisplayValue();


        }


        else


                  title = title + ','+ritem.cat_item.getDisplayValue();


                  desc =   desc+','+ritem.cat_item.category.getDisplayValue();


}



current.short_description = title;


current.description = desc;



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

23 REPLIES 23

riyanka5
Kilo Expert

Hi,



Please check the workflow version table and check if there are any conditions for both of them to run.



Regards,


Riyanka


SanjivMeher
Kilo Patron
Kilo Patron

You need to open the out of box workflow and set the properties condition to not run when your item is request.



If you are sure the OOB workflow is not used anywhere, you can deactivate it as well.



Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,



How Shall I make this happen. Whenver, I place a request for a Software, first it Runs a SC Request and takes the approval process and this is how it is supposed to work. But the problem is that it Runs the two worflows as the oob is getting used in some other process and since the condition is that if Prices <1000. It automatically approves the request. I want to make use of the the condition if the catalog item is Software, but I do not see the option to make use of the Catalog Item or Category in the Service Request.



I only get the condition when the table is RITM(sc_req_item), but not when the Table is (sc_req)


You need to add condition based on short description of the request.


When you submit a request, the short descrption should be getting populated with the catalog name.



Please mark this response as correct or helpful if it assisted you with your question.