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-online-with-arcade/
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.
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.
To provide some additional info, there is a nice video posted by Jennifer Bell
https://www.youtube.com/watch?v=MzfxBskoon8
Hi Scott Evans ,
This is what I have found out:
This is what is returned:
... with a simple mailto link like this:
<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>a</SPAN> <SPAN class="attr-name token">href</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>mailto:someone@somewhere.com?subject<SPAN class="punctuation token">=</SPAN>my report&body<SPAN class="punctuation token">=</SPAN>see attachment: {expression/expr0}&attachment<SPAN class="punctuation token">=</SPAN>{expression/expr0}<SPAN class="punctuation token">"</SPAN></SPAN><SPAN class="punctuation token">></SPAN></SPAN>Send email<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"></</SPAN>a</SPAN><SPAN class="punctuation token">></SPAN></SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.