Q & A with Matt K! Flow Photo (Almost) Fail
Posted on August 8, 2024 (Last modified on December 10, 2024) • 2 min read • 369 wordsWatch Now!
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.
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:
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!