Marc
05/18/2025, 8:26 PMCeligo AI
05/18/2025, 8:26 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that tracking the progress of a Map/Reduce script in real-time, similar to NetSuite's native UI, can be a bit tricky. However, there are a few methods that you can try: 1. Use the Task ID: When your Suitelet starts the Map/Reduce script, keep hold of the task ID that was sent back. You can then ping the status of the Map/Reduce script every few seconds. This can be done by using a client script and JavaScript's
setTimeout
function. The status will tell you when it's complete, and you can use N/cache
or a file to get the results.
2. Use a POST request in your Suitelet: You can have a POST request in your Suitelet using parameters to identify the call. The Suitelet can utilize the N/Task
module to return the data back to the browser to show the progress.
3. Use a custom status page: You can create a custom status page for your script. There are examples available online, such as the one mentioned in the conversation: https://github.com/jeffreymkabot/netsuite-task-status. This page can display the status of the script using the standard NetSuite UI, allowing the user to see the completion percentage and know when the script has finished and if there are any errors.
Remember, these methods might not work perfectly for all scenarios, and you might need to adjust them based on your specific requirements.
******
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/18/2025, 8:26 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825698733
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823815882
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813592672
Celigo AI
05/18/2025, 8:26 PM