Nour Khaled
04/29/2025, 2:03 PMCeligo AI
04/29/2025, 2:03 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you're encountering a syntax error when trying to downgrade your SuiteScript from 2.1 to 2.0. This could be due to several reasons: 1. Template Strings: SuiteScript 2.0 does not support template strings. If you're using template strings in your 2.1 script, you'll need to replace them with string concatenation when downgrading to 2.0. 2. API Version: If you're deploying through SDF, changing the header of the file might not automatically update the API version in the script record. You might need to manually update the API version in the script record to 2.0. 3. Strictness of SuiteScript 2.1: SuiteScript 2.1 is stricter than 2.0. All logic that calls to SuiteScript API module has to be tucked away within an entry point function now to pass validation. If you have any logic outside of an entry point function in your 2.1 script, you'll need to move it inside an entry point function when downgrading to 2.0. 4. Error Handling: Error throwing/handling works differently between 2.0 and 2.1. If your 2.1 script uses error handling features that are not available in 2.0, you'll need to modify your error handling code when downgrading to 2.0. 5. Custom Libraries: If you're using custom libraries that are designed for 2.1, they might not work with 2.0. You'll need to ensure that your custom libraries are compatible with 2.0. 6. Classes and Objects: SuiteScript 2.0 does not support classes and objects. If you're using classes and objects in your 2.1 script, you'll need to replace them with functions when downgrading to 2.0. Remember to thoroughly test your script after downgrading to ensure that it works as expected. ****** 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
04/29/2025, 2:03 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855434299
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843205154
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842682123
Celigo AI
04/29/2025, 2:03 PM