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.
Requirement: Need to display “Welcome” image without any text in the first screen of the flow.
Upload the image as a static resource.
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.
Requirement: Need to display “Welcome” image with logged-in user name in the first screen of the flow.
We will use the same image from the previous use case.
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.
In the flow screen, use the Display Text flow component and use the constant and flow variable as shown below –
I hope this will help you to use images as Static Resources in Salesforce Flow.