- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 12:04 PM
We need to create several tables, references and add columns in various existing tables. We have multiple environments and would like to know how can we create a single script which we can run on all the environments to have same changes?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 12:53 PM
This are the params taken:
table name
display field name
internal field name
type
lenght
referenced table (or keep it empty"
default value
scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 12:51 PM
Ohh... I mean any documentation in service now to explore this? I tried googling SncTableEditor.createElement but it does not gave any result. I need to know What are the arguments here for createElement? etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 12:53 PM
This are the params taken:
table name
display field name
internal field name
type
lenght
referenced table (or keep it empty"
default value
scope

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2021 11:24 PM
Hey
Your article helped me with my requirement. Just 1 thing I'm stuck at, It doesn't work with choice column type.
Could you let me know how can I use this method for creating choice type of field & how to create choices for that choice field?
I'm using script include because I'm running this for custom app. Script include created in global scope and calling it in custom scope.
Thanks,
Utpal Dutta