//greg
07/24/2025, 12:55 AMCeligo AI
07/24/2025, 12:56 AMAI generated answer (using internal Slack threads):Based on the conversations provided, it appears that creating or modifying a script deployment record via SuiteScript is possible. However, certain fields such as scheduling fields may not be scriptable. In the third conversation, a user attempted to load and modify a script deployment record using SuiteScript. The user tried to set the status, start date, and start time of a Map/Reduce script deployment. However, another user responded that scheduling might not be scriptable. Here is the code snippet that was shared:
javascript
var record2= nlapiLoadRecord('scriptdeployment', id, {recordmode: 'dynamic'});
record2.setFieldValue('status' , 'SCHEDULED');
record2.setFieldValue('startdate' , new Date());
record2.setFieldValue('starttime' , 1100);
nlapiSubmitRecord(record2,true);
This code attempts to load a script deployment record, set its status to 'SCHEDULED', and set the start date and time. However, it was suggested that this might not work due to limitations on what can be scripted.
******
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
07/24/2025, 12:56 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822988212
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816327035
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812913239
Celigo AI
07/24/2025, 12:56 AM