How can I use local storage to store a variable using script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2021 11:24 PM
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?
- Labels:
-
Script Debugger
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2021 11:48 PM
Hi,
unless you invoke the function from Script include B from script include A it won't know when to run
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 07:58 PM
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