- 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 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 10:19 AM
I may not be able to remember this shortkey. Is there a way to open the executor in menu item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2022 11:30 AM
Unfortunately no