I am trying to access the Session Object which is set within the Client script using SS 2.0 but “null” value is returned by the API.

var testObject={};

testObject.val='Test Value';


name: "Test",

value: JSON.stringify(testObject)


console.log(runtime.getCurrentSession().get({ name: "Test"}));
// Output--> null

Rookie Asked on January 18, 2020 in SuiteCloud.
Add Comment
1 Answer(s)
Intermediate Answered on January 18, 2020.

Thanks. I tried it in Debugger and it worked so was under impression that It would work for message passing between a Scheduled Script and Client script.

on January 19, 2020.

There is no session in Scheduled script.
Scheduled script in not executing under the user session, it’s a system background process.

on February 23, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor