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
          getPathAsync(blobMeta, fileType)

          getPathAsync(blobMeta, fileType)

          Gets the complete path of the attachment.

          Required Editions

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

          Parameters

          • blobMeta: Blob meta information.

          • fileType: File type of the attachment. For example, image/jpg, or jpg.

          Returns

          A Promise that is resolved with a complete path on its completion.

          Note
          Note An additional fileType parameter is required in Consumer Goods Cloud.

          Example

          var blobMeta = {
              "path" : "PrdAttachmentBlob\/00100000007gl7th.jpg",
              "width" : 480,
              "height" : 194
          };
          Attachment.getPathAsync(blobMeta).then(function (path) {
              // Handle success here
              console.log(path)
          }, function (error) {
              // Handle failure here
              console.error(error)
          });
           
          Loading
          Salesforce Help | Article