Santiago
11/19/2024, 2:50 PMCeligo AI
11/19/2024, 2:51 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** The
N/cache
module in NetSuite SuiteScript allows you to store and retrieve data by using cache keys. The scope of the cache can be set to cache.Scope.PRIVATE
or cache.Scope.PUBLIC
. When the scope is set to cache.Scope.PRIVATE
, the cache is only accessible within the script where it is created.
However, if you're trying to access a public cache key from another script, you may encounter issues. This is because even though the cache is set to public
, it is not globally accessible across all scripts. The public cache is only accessible to scripts that are part of the same script deployment record.
So, if you have two different scripts that are not part of the same script deployment record, they cannot access each other's public cache keys. This is a limitation of the N/cache
module in SuiteScript and is designed to prevent potential conflicts and security issues.
If you need to share data across different scripts, you might need to consider other methods such as using SuiteScript APIs to store and retrieve data from custom fields or records.Celigo AI
11/19/2024, 2:51 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806390941
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.80195272
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801844597
Celigo AI
11/19/2024, 2:51 PM