Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.

I have a visual flow which allows a user to move, consume, and replenish Product Items. At the beginning of the flow, several Product records are queried for the user to choose from. On each of these Product records, there is a field with a direct link to an image of the product.

 

Once the user has selected a Product record, I would like to dynamically display the image on the next flow screen via the URL field on the Product record

 

Some things I've already considered:

  • The Display Image component only works for static resources, and would not allow me to dynamically choose an image unless I commit to saving ALL product images as static resources.
  • I've tried storing the URL from the selected Product into a formula, then using an HTML img tag to display. Unfortunately, when I debug my flow, I see the actual text. It appears the flow is not reading the HTML tag.

 

Any ideas would be greatly appreciated.

11 respostas
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    23 de set. de 2021, 15:04

    Hi,

     

    Not sure if it would work, but have you tried adding the formula to a HTML text template in the flow?

    How does it render?

  2. 19 de ago. de 2022, 14:28

    Hey @Rachel Palmer, thanks for asking this question.

     

    @Eric Praud: Thank you for the HTML template solution. Came in handy for a project I'm currently working on! 

  3. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    23 de set. de 2021, 15:11

    Glad it worked. I'm surprised plain text works and not HTML, but it's one of those things :)

  4. 23 de set. de 2021, 15:10

    Eric,

     

    That was the ticket! I hadn't realized I should be using a text template. Selecting the "plain text" option and adding my image tag allowed me to display the image.

     

    Many thanks!

  5. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    21 de mar. de 2023, 08:15

    I see your question was answered @Guilherme Souza. Glad you solved it. It was late on my side of the world when you replied, so couldn't get to it before now

  6. 20 de mar. de 2023, 19:32

    I opened it, but I also sent you a private message, could you help me with this question?

  7. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    20 de mar. de 2023, 19:26
    This is a very different question to this thread, please start a new one
  8. 20 de mar. de 2023, 18:54

    for example, think that you are a developer and you are creating an employee record for the HR of the company you work for, and you want the HR to have the option to put the employee's photo, how do I make this dynamic?, I want the user final (RH) add the employee's photo in his registration. in short, I don't want to put a standard photo in my formula field, I want to let the user put the photo he wants.

  9. 20 de mar. de 2023, 18:48

    I am not able to create a formula field without a defined image, my intention is that the user chooses the photo to place, not me, would that be possible?

     

  10. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    20 de mar. de 2023, 17:49

    @Guilherme Souza, your issue is slightly different but shoudl work.

    Your field needs to be a rich text fied.

    Now, in your flow, add a new resource and choose formula and create a formula that will pick an image according to your requirements.

    Now, add a new resource>Text Template.

    Click on Insert a resource and find the formula you just created.

    In your update Record, update your rich text field with the text template you just created

  11. 20 de mar. de 2023, 17:44
    I'm having the same problem, I couldn't understand clearly how it was done, could someone tell me the step by step for me to put a dynamic image in the field of my custom object?

     

0/9000