Marc
05/14/2025, 8:56 PMCeligo AI
05/14/2025, 8:57 PMAI generated answer (using internal Slack threads):The
getPercentageComplete()
function is not directly mentioned in the provided Slack threads. However, there are references to similar functionality in SuiteScript, such as ctx.setPercentageComplete
in SuiteScript 1.0 and runtime.getCurrentScript().percentComplete
in SuiteScript 2.0. These functions are used to set the percentage of completion for a script, which can be useful for tracking the progress of long-running scripts.
In the context of Map/Reduce scripts, one user mentioned that they didn't think it was possible to update the percentage, and suggested that NetSuite should be able to calculate it based on the number of reduce invocations run.
Another user discussed trying to create a global script parameter to hold the percentage complete value, but was advised that script parameters can only be 'gotten' during script execution, not 'set'. They were suggested to use the N/cache module to hold data instead.
******
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
05/14/2025, 8:57 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825571418
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804605
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.785146952
Celigo AI
05/14/2025, 8:57 PM