Vedachalam Mahadevan
03/17/2025, 12:19 AMCeligo AI
03/17/2025, 12:19 AMAI generated answer (using internal Slack threads):Based on the conversations, it is technically possible to call a SuiteScript 1.0 Suitelet from a SuiteScript 2.0 User Event Script, but it's not a standard or recommended practice. The main challenge is that standard Suitelets only work when the JSESSIONID cookie is set. If you can get the JSESSION from the current user, you can send it to the Suitelet to trick it into thinking it's being called from a logged-in session. However, this involves playing around with cookies, which is not a standard or recommended practice. Another option is to make the Suitelet available without login, but this has significant security implications and should be carefully considered. It's also worth noting that one User Event script cannot directly trigger another User Event script. A workaround for this, as mentioned in one of the conversations, is to use a Suitelet to trigger the creation/update of a record, which in turn triggers its User Event script(s). However, this approach requires the "Available without login" option to be enabled on the Suitelet script, which again has security implications. In conclusion, while it's technically possible to call a SuiteScript 1.0 Suitelet from a SuiteScript 2.0 User Event Script, it's not a standard or recommended practice due to the challenges and security implications involved. ****** 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
03/17/2025, 12:19 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.893083215
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848304
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847687423
Celigo AI
03/17/2025, 12:19 AM