- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 10:31 PM
Hi,
I want to call current.sys_id from business rule to script include instead of doing gliderecord and getting the sysid. Please let me know how can I get this.
Thanks,
Revathi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 01:17 AM
Hi Maradani!
You can pass the sys id from a business rule to a script include as a parameter.
For Example:
var sysId = current.sys_id
var result = new nameOfTheScriptInclude().nameOfTheMethodInScriptInclude(sysId);
This way you won't have to use GlideRecord in your script include.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 10:39 PM
pass the current object to the script include
Use current.getUniqueValue();
currrent.getTableName();
in the script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 01:17 AM
Hi Maradani!
You can pass the sys id from a business rule to a script include as a parameter.
For Example:
var sysId = current.sys_id
var result = new nameOfTheScriptInclude().nameOfTheMethodInScriptInclude(sysId);
This way you won't have to use GlideRecord in your script include.
Hope this helps!