Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Difference between gs.session.putProperty(...) and gs.session.putClientData(...)

peter_repan
Kilo Sage

Hi all,

I would like to ask you what is a difference between these two methods and where I can use them.

I know that gs.session.putClientData(...) can be used on server and then g_user.getClientData(...) on client (wiki), but what about putProperty method?

Can it be used in a same way and what are main differences between them?

Thank you

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think they work pretty similarly on the server side, but the difference may be that putProperty() doesn't make it available on the client like putClientData().