Calling Script Include in Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2017 07:03 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2018 08:34 AM
you can also use this directly
new Class_name.function_name;
new MyScriptInclude().myMethod();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2017 07:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2020 11:23 PM
Hii
U can even call the script inclue in BR through following manner
function_name(parameter);
eg audit('incident');