we want to send an email confirmation containing some information from inside the app.
One of them is a picture the operator has taken inside a form step. I don’t seem to be able to add said image to the expression that forms the emails content.
So I realized it is possible to add images to an email if you put the image(s) into an array and inside the expression editor add the image array to the email.
It would be nice to be able to directly add an image, though.
Hello team,
I am looking for the same. I require to send an email but including a picture that was already taking in the app as variable.
please, let me know if this is possible.
Additional follow-up, pushing multiple pictures into an array and sending the text of that array doesn’t send an email at all (not even a blank email), despite seeing the ‘Email Sent’ notification.
Image links will only work for a few days after the image has been taken, otherwise you will reach an AWS error link. I think 3 days about. You should be able to create an array with a bunch of image links and then use join to string on that array, send it to a new different string variable, and then email that string.
I’ve taken pictures from the app directly and send via email. Opening the email link immediately still prompts the error on my end despite being within the approx. time window you suggested. Not sure what’s going on here.
Follow up - I was able to modify the string to remove the [, ", and ] characters.
For some reason it kept erroring on the substitute for the [ character, so I had to get creative. Only works on a single photo array. Some form of regex may work as well but this is easier.
Here’s the procedure I’m using without issue, it’s a little roundabout but avoids the issues you’re having.
Step 1: Load your record placeholder and store the photo into a photo array. It’s easiest to create an array within the if/then logic screen so you know the array type is correct. It should be a Photo URL Array
Below you can see a sample of an email I created, along with some other information from the app that I pushed onto the string array along with new line characters before the join to string operation.
I have worked through setting up pictures to flow through emails as mentioned with the various methods above however, similar to the issue I had prior with setting up an email through expression to pull from table records, it only pulls the first photo. I took 2 out of 4 photos, have it set up to possibly pull 4 photos and the message nulls out the 2nd photo taken.
If you run your app in Test mode can you verify in the variables area that Photo 2 has information in it? Also just FYI you can insert new line characters into your string by pressing Shift + Enter. So + ’ Shift + Enter ’ +
I know that Photo 2 has information as I could see it in the table. I just need the email to send anything with information regardless to if there are values that come up null.