- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 06:51 AM
How to test a piece of javascript quickly?
Do you have to test it in client ui policy or business rule? fix script? which is quick and convenient? for example, to query GlideRecord?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 08:47 AM - edited 12-03-2022 08:47 AM
Javascript Executor is only for client-side code, and you shouldn't use GlideRecord in client-side code.
If you are just trying to test the js executor, try this simple line
alert("Hello from the Javascript Executor");
To learn more about scripting, I highly recommend this
and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 07:02 AM
Background script is the quickest and easiest.
Please mark the answer correct/helpful accordingly.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 07:20 AM
For server side - background scripts.
For client side - JavaScript executor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 08:25 AM
how to access JS executor from NOW? or where is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 08:27 AM