Loading

Create Public Link for Files in Salesforce

Udgivelsesdato: Aug 18, 2026
Beskrivelse

Salesforce lets you create a Public Link for any file in the Files tab, generating a web-accessible URL anyone can open without logging in. This is commonly used to embed an image hosted in Salesforce directly into an email template — without it, images referenced by an internal file URL will appear broken to email recipients.

Løsning

This solution explains how to create a Public Link for a file in Salesforce so it can be accessed without login — for example, to fix broken images in emails that reference a file hosted in Salesforce.

Enable Content Delivery

Make sure Content Delivery is enabled in your org. Content Delivery is the underlying feature that generates a publicly accessible, unauthenticated URL for a file — without it, the Public Link option won't work as expected.

Create the Public Link

  1. Open the Files tab from the App Launcher.
  2. Locate and open the desired image.
  3. Click on Public Link at the top of the page.
  4. Select Create Link and copy the generated link.
  5. Open a new browser window and paste the link into the address bar.
  6. Right-click on the displayed image and select Copy Image Address.

Use the Link in an Email Template

Use the copied image address in your email template. For example:

<img src="Image Address"/>

This ensures that the image is hosted online and can be displayed correctly to recipients, instead of showing as a broken image link.

FAQ:

Why do I need Content Delivery enabled?

Content Delivery is the feature that generates the public, unauthenticated URL for a file. Without it enabled in your org, the Public Link option won't function as expected.

Can I use a public link for files other than images?

Yes — the same steps work for any file type in the Files tab. This article focuses on the common use case of embedding an image in an email template, but the Public Link feature isn't limited to images.

Vidensartikelnummer

003876254

 
Indlæser
Salesforce Help | Article