help !! Call Script Include in Business Rule and pass Parameters to Script include .

Tarun2
Tera Contributor

Hi , 

I have a Requiremnet to Call  Script Inlcude  IN Business Rule  and pass parameter to it . 

BR: (on display ) - Due to requirement (many depends on  it )

find_real_file.png

Script include 😞 client callable )

var TableauToColumn = Class.create();
TableauToColumn.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
Function_Name: function() {

var tbName = this.getParameter('sysparm_child_name');
var sysId = this.getParameter('sysparm_record_id');

},}

 

 

* How to pass parameters to this script include from Business Rule . 

* I need to send two parameters to this script include .

* In that script include , i will glide a Table and then insert these values in to Another Table .

Kindly Help me with the script .

 

Thankyou 

 

 

 

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

BR: (on display ) - Due to requirement (many depends on  it )

 

solution: this is not good approach, use glide ajax here on onChange client script 

 

View solution in original post

3 REPLIES 3

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Tarun,

 

Please refer similar question answered here https://community.servicenow.com/community?id=community_question&sys_id=e15f51d91b2800d4d01143f6fe4b...

 

- Pradeep Sharma

Harsh Vardhan
Giga Patron

BR: (on display ) - Due to requirement (many depends on  it )

 

solution: this is not good approach, use glide ajax here on onChange client script 

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Tarun,

If you could explain your business requirement here? that would help for determining which approach is ideal

Display business rule will run when form loads; what is the relationship between those 2 tables

Regards
Ankur

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