How to pass parameter in script include from business rule
This content was last updated in 2022. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 07:02 AM
I am calling my scriptinclude from a BR and i want to send some parameter in this script include from BR to script include
and also how can i fetch these value in script include
sample BR code:-
var incNumber = current.number;
var x=new Update_date();
x.updateStartDate(??);//how to send value in script include
sample script include code:-
updateStartDate: function ()
{
how to fetch those value come from BR
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 07:08 AM
pass variable names in function call and add arguments in function declaration
var x=new Update_date();
var a=13;
x.updateStartDate(13,a);//how to send value in script include
sample script include code:-
updateStartDate: function (num1,num2) //something like this
{
how to fetch those value come from BR
// use num1 and num2;
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 10:39 PM
Check this Article:
https://community.servicenow.com/community?id=community_question&sys_id=a600c321db98dbc01dcaf3231f961905