Workflow Activity for Service Catalog Request

Nisha30
Kilo Sage

Hi All,

Thanks for assisting me with how to proceed in my previous thread Service Catalog Workflow  

 

Since that thread is closed starting this new one for the Error which I am getting in workflow it is not proceeding and recognizing the RITM field .

 

The workflow should not trigger if the RITM belongs to 'Technical Catalog' 

 

Nisha30_1-1743511622037.png

 

Nisha30_2-1743511641231.png

 

 

 

Nisha30_0-1743511578191.png

 

Thanks

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Nisha30 

try to use the OOB syntax for IF activity

answer = ifScript();

function ifScript(){

// your code here

}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Nisha30 

at line 5 closing ) bracket is missing

if(itm.next()){
	answer = 'yes';
}
else{
	answer = 'no';
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@Nisha30 

try to use the OOB syntax for IF activity

answer = ifScript();

function ifScript(){

// your code here

}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader