How can I use local storage to store a variable using script include?

Pratik13
Giga Contributor

Hello,

I want to set a variable value using a script include and use the value in another script include.

Can I do this using a local variable?

If yes can anyone provide a simple example?

6 REPLIES 6

Hi,

unless you invoke the function from Script include B from script include A it won't know when to run

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ravi Kiran M
Kilo Contributor

Hi , I have same requirement to fetch the values from local storage of another application. did you find out any way ?

 

I have deployed Engagement messenger in another application. And I want to know when user logs into another application they have some values populated in localstorage I need to use that data for fetching the records from servicenow