can we call script include from business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 02:41 AM
if its yes, give me a example...
thanks
sanjay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 02:59 AM
Hi Sanjay,
yes you can call. as you call any function same way you can call it.
var myCustomClass = Class.create();
myCustomClass.prototype = {
initialize: function() {
},
myCustomFunction: function () {
...
Business rule should look like :
var myVariable = new myCustomClass();
myCustomClass.myCustomFunction();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2018 09:53 AM
Server Side Script include can be called in BR.
Thank You
Masarrat Siddiqui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 01:27 AM
var ApprovalEntitlementUtil = Class.create(); ApprovalEntitlementUtil.prototype = { initialize: function () { }, //on create approval, return the entitlement status returned by licensing API here onCreateApproval: function (usersysid, tablename) { try { var isEntitled = new sn_lef.GlideLicenseAPI().canUserApproveOnTable(usersysid, tablename); return isEntitled; } catch (e) { gs.log("Error with onCreateApproval: GlideLicenseAPI failure."); } }, //on adjudicate approval, return the entitlement status returned by licensing API here onAdjudicateApproval: function (usersysid, tablename) { try { var isEntitled = new sn_lef.GlideLicenseAPI().enableEntitlementLogging().canUserApproveOnTable(usersysid, tablename); return isEntitled; } catch (e) { gs.log("Error with onAdjudicateApproval: GlideLicenseAPI failure."); } }, type: 'ApprovalEntitlementUtil' }; nowKB.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2024 01:29 AM
var ApprovalEntitlementUtil = Class.create(); ApprovalEntitlementUtil.prototype = { initialize: function () { }, //on create approval, return the entitlement status returned by licensing API here onCreateApproval: function (usersysid, tablename) { try { var isEntitled = new sn_lef.GlideLicenseAPI().canUserApproveOnTable(usersysid, tablename); return isEntitled; } catch (e) { gs.log("Error with onCreateApproval: GlideLicenseAPI failure."); } }, //on adjudicate approval, return the entitlement status returned by licensing API here onAdjudicateApproval: function (usersysid, tablename) { try { var isEntitled = new sn_lef.GlideLicenseAPI().enableEntitlementLogging().canUserApproveOnTable(usersysid, tablename); return isEntitled; } catch (e) { gs.log("Error with onAdjudicateApproval: GlideLicenseAPI failure."); } }, type: 'ApprovalEntitlementUtil' }; nowKB.com