To All,
I have created a custom email popup within a web map. It uses the 'mailto:' protocol to achieve this, similar to what is in this link: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/send-email-from-web-map-pop-ups/ . I have also been able to use some arcade functions as well to grab things such as local time, lat and long, and other information to populate the email. What I want to do is attach the photos in the popup, into the email that is generated. I know Arcade has an attachment function, but is used to get attachments counts and properties (size, etc.). Has anyone accomplished this feat yet?
Thanks,
Scott
I don't think this is possible in a single mailto url. The Attachments function will get you a collection of Attachments that will provide access to the name and ID of the attachment, but how will you attach the file to the email?
See also this blog: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/visualize-your-attachments-in-arcgis...
Xander,
I was hoping there was some way through arcade to maybe get the BLOB information from the attachment, and place it in the email with an alias, or as an attachment to the email.
Scott
I haven't seen this type of functionality before, but it would be nice.
Ok, I figured I would put it out there. Thanks for the quick response!
There would be another challange... I just saw this post on Stack Overflow: https://stackoverflow.com/questions/5233556/using-mailto-to-send-email-with-an-attachment which mentions that the mailto could (should) link to a URL. If you would be able to construct the link to the attachment (I assume using the ID propperty of the attachment) it will likely need a token to access the URL and tokens expire.
Yeah, I saw that too. I have done this using desktop, with a feature service on our ArcServer environemnt, and a python script. But to do it using pure AGOL seems to not be there yet.
To provide some additional info, there is a nice video posted by Jennifer Bell
Hi Scott Evans ,
This is what I have found out:
This is what is returned:
... with a simple mailto link like this:
<a href="mailto:someone@somewhere.com?subject=my report&body=see attachment: {expression/expr0}&attachment={expression/expr0}">Send email</a>
Ok. The issue is that the feature services are mostly non-public. This creates the other issue of the tokens... I am thinking at this point it might not be possible, unless I bring the application into a development environment and go from there.