You are here:
getPathAsync(blobMeta, fileType)
Gets the complete path of the attachment.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Gets the complete path of the attachment.
| Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
blobMeta: Blob meta information.
fileType: File type of the attachment. For example, image/jpg, or jpg.
A Promise that is resolved with a complete path on its completion.
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)
});
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.