Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Access $rootScope in server script

David Pichard
Mega Guru

Hi, wondering: Certainly there is a way to access the $rootScope object in the server script of a service portal widget?

3 REPLIES 3

Gosia Urbanska
Tera Guru

To the best of my knowledge, you cannot do this; But you can pass anything to the server side using server.get(object).then(function(response){}) 

Have you tried this? 

Thank you, I was able to design a workaround using server.get().

Gosia Urbanska
Tera Guru

glad to help