How to use script(plain) field type to create new field.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2016 11:29 PM
When we create new field on any table, we can select it datatype as string,list, journal entry, reference. script(plain), script.
Can you please tell me what is use of script(plain) and script field type
Labels:
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2016 05:13 PM
If you want to execute code, I would think that you want to create a Business Rule or run a background script.
Scripting in Business Rules - ServiceNow Wiki
What do you want your script to do?
It is possible to evaluate script fields but it is not a beginner scripting topic and is generally not how you write scripts.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022