- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 10:49 PM
Hello Experts,
I want to use the client callable script include from business rule /Background script. Please help.
Sample Client callable script Include script
getCallerLang: function(){
var caller_id = this.getParameter('sysparm_caller_id');
}
Please help to fetch the output through background script.
Note : function does not have any parameter in Client callable script Include script.
Regards
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 11:14 PM
Hi,
yes that's possible
Same function can be called from ajax or server side like this
getCallerLang: function(caller){
var caller_id = JSUtil.nil(caller) ? this.getParameter('sysparm_caller_id') : caller;
}
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 11:05 PM
Hello,
Go through below links
https://community.servicenow.com/community?id=community_question&sys_id=e15f51d91b2800d4d01143f6fe4bcb3f
https://community.servicenow.com/community?id=community_question&sys_id=5041fe0ddbb867448e7c2926ca96198e
https://community.servicenow.com/community?id=community_question&sys_id=4510f576dbabe7c0107d5583ca961910
To learn more about script include refer this
https://www.basicoservicenowlearning.in/2019/12/script-include-servicenow.html
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 11:08 PM
Hello,
Refer the below link.
Regards,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 11:14 PM
Hi,
yes that's possible
Same function can be called from ajax or server side like this
getCallerLang: function(caller){
var caller_id = JSUtil.nil(caller) ? this.getParameter('sysparm_caller_id') : caller;
}
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 05:19 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader