Q & A with Matt K! Flow Photo (Almost) Fail

Watch Now!

Chris Stegall
creme de la crm
2 min readAug 8, 2024

--

In the latest episode of “Q & A with Matt K!”, Matt tackles a question from Ian in the Salesforce Trailblazer Community about displaying a user’s profile photo using a Flow.

Ian’s looking to display the image and name of their org’s top performer over the last 7 days.

Ian’s Question:

“I have a screen flow that is displaying a top rep (the rep that has created the most opportunities in the past 7 days). Based on those criteria, I want to display their profile picture alongside their name. I’m having trouble doing so with displaytext/image components. I’m sure there is a way to do this I’m not thinking of.

Any ideas?”

After quite a bit of poking and prodding, testing, and checking, riiiiight before it looked like there was no solution in sight — a lightbulb!

A solution that worked, after almost 40 minutes of effort!

But, as often happens in the world of Salesforce, that answer opened Matt’s eyes to an even simpler solution! A surprisingly speedy method!

Here’s a brief synopsis of the solution(s) Matt came up with:

  • Create your flow
  • Add a Screen to the Flow to Display Text
  • In the Edit Screen, right click and “Inspect” the Rich Text Editor
  • Find the HTML that corresponds to the Rich Text Editor
  • Simply insert and image tag where the source is equal to {Your ‘GET’ for the User Record}.MediumPhotoUrl]
  • (and you can use additional fields as well, if you want to use their name for the alt text, for example)!

Here’s a sample of that snippet to copy and paste!

<img src=”{!Get_User.MediumPhotoUrl}” alt=”{!Get_User.FirstName}” />

For a step-by-step guide on how to implement it (and why it works) you can watch the full video here! (But maybe try watching at 1.25x so it’ll go by a little faster).

And now you’re all set!

As always, if you have any questions or topics you’d like Matt to tackle in future episodes, feel free to leave them in the comments or, even better, submit them through our form at quickto.click/Q&A!

Then stay tuned here for more tips and solutions to your Salesforce challenges!

Until then, keep working hard, smart, and happy. And we’ll see you in the cloud!

--

--

Chris Stegall
creme de la crm

Digital Marketing Director @ MK Partners. Salesforce lover, user, and constant learner.