NElliott
02/07/2025, 12:32 PMCeligo AI
02/07/2025, 12:32 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that accessing script parameter values on a deployment from another script is possible under certain conditions. If the script parameter is set at the company level, it can be accessed by other scripts using the
N/config
module. Here is an example of how you can do this:
javascript
var config = require('N/config');
var companyPreferences = config.load({ type: config.Type.COMPANY_PREFERENCES });
var parameterValue = companyPreferences.getValue({ fieldId: 'custscript_your_param' });
However, if the script parameter is not set at the company or user level, it seems that you cannot directly access it from another script. The record.load
method does not return the script parameter values when loading a script deployment record.
If you need to share values between scripts and those values are not company or user preferences, you might need to store them in a different way. For example, you could use a custom record or a Suitelet to store and retrieve these values.
******
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
02/07/2025, 12:33 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.880571604
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.876792669
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.87469548
Celigo AI
02/07/2025, 12:33 PM