- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2023 04:56 PM
I plan to use "g_scratchpad" for development from now on.
The main use is to read system properties in display business rules,
I plan to create and store some variables in "g_scratchpad".
Is it possible to store large amounts of data?
Also, is the data stored in "g_scratchpad" saved on the client side (temporary storage area of the browser, etc.)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2023 06:14 PM
Using g_scratchpad in ServiceNow is a good practice for storing temporary data that needs to be shared across client-side scripts, such as client scripts and UI policies. However, there are some important considerations regarding its limitations and where the data is stored:
Size Limitation: g_scratchpad is not suitable for storing large amounts of data. It's meant for small and temporary data storage. There is no specific size limit defined for g_scratchpad, but it's not designed for storing large datasets or files. If you need to store and manage large amounts of data, consider using tables or other appropriate storage mechanisms in ServiceNow.
Client-Side Storage: The data stored in g_scratchpad is maintained on the client side, specifically within the user's browser. This means it's temporary and only persists as long as the user's session is active. When the user logs out or closes their browser, the data in g_scratchpad is cleared. It's not a server-side storage mechanism and should not be used for long-term data retention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2023 06:14 PM
Using g_scratchpad in ServiceNow is a good practice for storing temporary data that needs to be shared across client-side scripts, such as client scripts and UI policies. However, there are some important considerations regarding its limitations and where the data is stored:
Size Limitation: g_scratchpad is not suitable for storing large amounts of data. It's meant for small and temporary data storage. There is no specific size limit defined for g_scratchpad, but it's not designed for storing large datasets or files. If you need to store and manage large amounts of data, consider using tables or other appropriate storage mechanisms in ServiceNow.
Client-Side Storage: The data stored in g_scratchpad is maintained on the client side, specifically within the user's browser. This means it's temporary and only persists as long as the user's session is active. When the user logs out or closes their browser, the data in g_scratchpad is cleared. It's not a server-side storage mechanism and should not be used for long-term data retention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2023 05:33 PM
I understand!
thank you!