Gs object not working in client script

naziya
Giga Contributor

I am trying to use GS object in my client script but I am getting the error :-

'The object "gs" should not be used in client scripts'

How can I use gs in my script?

12 REPLIES 12

Anurag Tripathi
Mega Patron
Mega Patron

gs is a server side object, it cannot be used in client scripts.


We can help you if you tell what exactly are you trying to achieve


-Anurag

Thanks. I am trying my hands on scripting and gs is mentioned in a document I came across. As it provides more methods, I wanted to explore it more.


I would like to reference the current user.   Where I am able to use gs I would use gs.getUser().   So how would I do that in a client script without using gs?


st411ar
Tera Contributor
Looks like mguy tried to answer below to you but replied on wrong message from 
loudari.karim.
 
He noted GlideUser as an answer on your question.
 
Modern doc for last release (Paris): GlideUser