I need cookie/Session functionality in Service Now how to get that?

swathigangadhar
Tera Expert

I have a requirement-

  • Input taken from UI Page "PageOne"
  • To pass those inputs from "PageOne" to multiple UI pages "PageTwo","PageThree" And "PageFour" and set their parameters at a time and refresh that page.

How to do that?Please help me,Thanks in advance.

Regards,

Swathi

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

this will help, session variables



Session Client Data - ServiceNow Wiki


-Anurag

Hi anurag,



Thanks a lot, but i want to fetch them in UI Page, not for a form.



How to achieve that?


this is a client side code, you can sue if in the <script> tag or in client script part in ui page


g_user.getClientData('test1');


-Anurag

when i try to run in background script, to display test1, it is showing undefined.