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.

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

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().