Luis
09/11/2024, 2:42 PMCeligo AI
09/11/2024, 2:42 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like the issue you're experiencing might be related to the permissions of the role that is executing the script. In NetSuite, client scripts perform searches and access data with the permissions of the current user role. If the role can't see the underlying searches or the values, it will look like no results, and you'll get fields set to blank. Here are some steps you can take to debug this issue: 1. Check the role permissions: Use the role with the missing values and attempt to find the field values in the UI to be sure that's the problem. If it is, you can either add role permissions, maybe update the records or fields to add it to the access list. 2. Use a Suitelet: If the issue is indeed related to permissions, you can use a Suitelet that runs as admin and have your client script call the suitelet to get the data it needs. 3. Check if the script is actually running: Make sure that the script is actually running when the record is being created or updated. You can do this by adding log statements in your script and checking the execution log. 4. Try making the change in afterSubmit: If the issue persists, you can try making the change in the afterSubmit event. However, this might have performance implications as you would need to load the record again and submit it. 5. Check for interfering workflows: In some cases, the issue might be caused by an interfering workflow. Make sure that there are no workflows that are modifying the same field. Remember to always test your changes in a sandbox environment before deploying them to production. ****** 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
09/11/2024, 2:43 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.86602062
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858286917
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854318
Celigo AI
09/11/2024, 2:43 PM