Loading
Feature degradation | Gmail Email delivery failureRead More
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
          getPreviewPathAsync(blobMeta, path, fileType)

          getPreviewPathAsync(blobMeta, path, fileType)

          Gets the complete path of the preview attachment

          Required Editions

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

          Parameters

          • blobMeta: Blob meta information.

          • path: Full path of the attachment

          • 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 pathCameraSavedMyImage = "C:\\Data\\MyFiles\\image.png";
          var blobMeta = {
              "path" : pathCameraSavedMyImage
          };
          Attachment.getPreviewPathAsync(blobMeta, pathCameraSavedMyImage).then(
              function (path) {
              // Handle success
              console.log(path);
          }, function (error) {
              // Handle error
              console.error(error);
          });
           
          Loading
          Salesforce Help | Article