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

Raju Singh1
Tera Expert

Is there a way to attach a   service Request workflow (not Service Request Item) based on categories for Service Catalog


Raju Singh1
Tera Expert

Basically how the workflows works in Service Catalog is that it work in two sets.



1) one workflow works for Service Request. I am not sure how to segregate this based on categories as it doesn't show the condion as Categories


2) second workflow works for Request Item. This can be segregated as I get the conditions for categories in this workflow


Hi Raju,



The one which you want to run change the condition based on the short description of the request which is generally same as that of a catalog item.



Hope this helps.



Thanks,


Riyanka


Hi Riyanka,



short Description of the request is not getting filled from the catalog item. It comes as a blank field. Hence I am not able to use this condition in Service Request. However, short description of the RITM is getting field from the catalog item.