Calling Script Include in Business rule

mohammedhyderal
Kilo Contributor

Hi All,

I have a requirement of calling a script include from the business rule,

Let me explain the complete requirement

1) I have created a test variable in one of the catalog item

2) whenever the test variable is set to complete, Only then the business rule should trigger

3)I need to call the script include if the test variable is set to complete

Thanks in advance

7 REPLIES 7

you can also use this directly

new Class_name.function_name;

new MyScriptInclude().myMethod();

Anurag Tripathi
Mega Patron
Mega Patron

Instead of BR you have to use a catalog client script instead.



Now you need GlideAjax to call script include from Client script liek this



Examples of asynchronous GlideAjax


-Anurag

Archana Dudhan1
Kilo Expert

Hii

 

U can even call the script inclue in BR through following manner

 

function_name(parameter);

eg audit('incident');