- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 03:51 PM
yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 04:16 PM
Hi Sneha,
So, you can run a script like this:
var param1 = current.getValue('sys_id');
var scriptResult = true;
var evaluator = new GlideScopedEvaluator();
evaluator.putVariable('param1', param1);
scriptResult = evaluator.evaluateScript(current, '<name_of_the_field_that_contains_the_script>', null);
Then, in the field that contains the script, you can use "param1" as it was declared.
This is a very powerful tool to use!!
Please, if this answer is relevant for you, please mark it as correct and helpful.
Thanks,
Filipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 10:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 11:06 PM
Hello Sneha,
Kindly send Screenshot what you are doing.
also explain use case in brief.
Mark my Response as Correct or Helpful, if you find it Appropriate.
Gaurav Shirsat : ServiceNow Community MVP 2022
https://www.linkedin.com/in/gauravshirsat/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2022 03:07 PM