darrenhillconsulting
11/27/2024, 4:06 PMCeligo AI
11/27/2024, 4:06 PMAI generated answer (using internal Slack threads):To retrieve values from the General Preferences using SuiteQL, you can use the
runtime.getCurrentScript().getParameter({name : 'custscript_name'})
method. This method allows you to access the values of script parameters globally, regardless of which script you are calling from.
Here is an example of how you can use this method:
javascript
var script = runtime.getCurrentScript();
var preferenceValue = script.getParameter({name : 'custscript_name'});
In this example, 'custscript_name' is the internal ID of the script parameter you want to retrieve. Replace 'custscript_name' with the internal ID of the script parameter you are interested in.
Please note that this method only works for script parameters. If you want to retrieve other types of preferences, you may need to use other methods or make a lookup record that has a custom field which uses the preference type as a source.
******
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
11/27/2024, 4:06 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816783309
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815058529
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814197838
Celigo AI
11/27/2024, 4:06 PM