Fernando Batres
04/14/2025, 8:04 PMCeligo AI
04/14/2025, 8:04 PMAI generated answer (using internal Slack threads):To insert a new parameter into a script using the script field, you need to follow these steps: 1. Create the Parameter(s) from the Script record. You can do this by navigating to the script record and adding the parameters in the parameters tab. Here, you can specify the label and the ID for the parameter. 2. Once you have added the parameters in the script record, you need to edit the Script Deployment record(s). The Parameter fields will be on the Parameters tab of the Script Deployment record. Here, you can specify the value for the parameters. 3. You can access these parameters in your code using the
N/runtime
module. Here is an example of how you can retrieve a parameter in your script:
javascript
var searchid = runtime
.getCurrentScript()
.getParameter({ name: "custscripttest_id" });
In this example, custscripttest_id
is the ID of the parameter that you have set in the script record and the script deployment record.
Remember, the parameters are specific to the deployment. So, if you have multiple deployments for a script, you need to set the parameters for each deployment.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/14/2025, 8:04 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829209447
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826284349
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825170517
Celigo AI
04/14/2025, 8:04 PM