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
          saveFileAsync((content, fileType, compressed)

          saveFileAsync((content, fileType, compressed)

          This method saves the file.

          Required Editions

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

          Parameters

          • content: Refers to the content of the file.
          • fileType: Refers to the type of the file to be saved. The file type must be an extension.
          • compressed: Refers to the optional parameter, which is used to compress the file. It has two values: true or false. Any value other than the specified value is considered as false.
            Note
            Note Note: The optional parameter, compressed, is only applicable in Consumer Goods (CG) Cloud solution and is supported only on the device. In HESA for Cloud, the parameter is considered as false even if the value passed is true.

          The method throws an exception when parameter compressed is used in the following scenarios:

          • Used for files other than JSON file type.
          • Used in CG Cloud with Compressed parameter as true.
           
          Loading
          Salesforce Help | Article