How to use script(plain) field type to create new field.

sumitjumale
Kilo Contributor

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

find_real_file.png

5 REPLIES 5

The SN Nerd
Giga Sage
Giga Sage

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