calling multiple script includes dynamically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2023 01:36 AM
Hi,
I have the field u_calculation of type String in u_merkaz_tom custom table. This field's hold for each row a combination of Script include's name and function, for example: MyScriptInclude().MyFunction().
I need to create a UI Action that when the user clicks on it, it will for each row the u_calculation value and trigger the script include and the script include function that it holds each time.
How can I achieve that?
 

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2023 03:52 AM
@Alon Grod I recommend making u_calculation a Calculated field here. Following are the steps using which you can make a filed calculated.
1. On your form right click on the field and choose Configure dictionary.
2. You will be taken to the following screen.
Click on the advanced view in the related links in the bottom.
3. On the advanced view find the Calculated Value tab and check the calculated checkbox.
For more information on Calculated Values please refer to this article https://www.servicenow.com/community/developer-blog/calculate-value-field-use-case/ba-p/2386808
Hope this helps.