Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          secureGetAsync(key, defaultValue)

          secureGetAsync(key, defaultValue)

          Get a secure key-value storage for framework users. This storage can be used to store any sensitive information, such as credentials for web-based authentication. secureGetAsync() gets the value of the key supplied; if no value is found, the default value is returned.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          key
          The key for which a value has to be retrieved.
          defaultValue
          The value returned if no value is found.

          Return Value

          A promise.

          Example
          Example
          Facade.secureGetAsync("sessionTokenForSyncWs", '').then(function (ret) {
          console.log("value returned for key:->" + ret); // ret is the value retrieved
          }, function (error) {
          console.log("error:->" + error)
          });
          
           
          Loading
          Salesforce Help | Article