Header Ads Widget

How to use images as Static Resource in Salesforce Flow

 


This blog post will cover - "How to use images in Salesforce Flow?" 

I will be implementing two use cases where in the first use case, it will be just displaying the image, wherein the second use case, it will be displaying the image along with logged-in user name in the same line.

Use Case

Requirement: Need to display "Welcome" image without any text in the first screen of the flow.

Implementation:

Step 1: 

Upload the image as a static resource.


Step 2:

Create a screen flow and include the Display Image flow component. Image Name will be the name of the Static Resource name,  Horizontal Alignment will be either left, center, or right. You can include CSS styling, Image Height, and Image Width.



Final Screen: 




Use Case

RequirementNeed to display "Welcome" image with logged-in user name in the first screen of the flow.

Implementation:

Step 1:  

We will use the same image from the previous use case.

Step 2:  

Create a screen flow and inside the flow first, let's create a constant of type text as shown below -


In the value section, replace Welcome with the name of your static resource.

Step 3:  

In the flow screen, use the Display Text flow component and use the constant and flow variable as shown below -



Final Screen: 




I hope this will help you to use images as Static Resources in Salesforce Flow. 
 

Post a Comment

0 Comments