As a user I would like to create a image of the apps page and insert it into an email.
Hello @Justin_Brodowsky!
I can definitely make a feature request for this.
For the short term there are options to take screenshots of your computer and then drag/drop these into an email. I like using a free app called 'Cleanshot' on my Mac
I am guessing you are interested in a Retool native way to screenshot the app page. Then pass this image file into an email query/workflow email, correct?
Correct. Something native that can be automated.
Have you tried using utils.downloadPage()
?
utils.downloadpage only captures what is visible. If you have something that requires you to scroll the items not visible in the scroll is not included. Also, it can't be a set inside the body of the email. Only as an attachment.
Hello @Justin_Brodowsky
Ah ok, that you for the additional details on the situation. It sounds like you have nested components/scrollable components that you want to share in their entirety.
I don't think there is a way to expand scrollable content programatically.
You could, for example, manually resize your components so that they do not need scrolling and then use utils.downloadPage()
.
None of our util functions would be able to take one or multiple scrollable components and resize them to their full size automatically. As this would force the page to then move all the components below and around it, which would completely and randomly change the layout of components.
Let me check with our engineering team on if this would be a possible feature to add. Although I would recommend manually resizing to eliminate scroll as you will have full control over where components are relative to each other as they take up more space.
Sending an image inside the body of an email is also tricky to do programmatically but easy to do manually it seems that most email platforms are set to do this via drag-and-drop.
I was looking around online for how to do this programmatically and I found this online, which explains that under the hood, emails uses an HTML img
tag to load the image file, via setting the src
to the image file, via the file path or URL.
You can set the body of an email to take in HTML components, but users would have to manually assign the img component's src.
For this reason it is highly recommended to send image files as attachments