Select to view content in your preferred language

Can i email the row data on selection of a row from table on arcgis Dashboard?

641
4
03-29-2023 11:14 PM
jauhari_mani
Regular Contributor

I want to email the row data on selection of a row from the table on arcgis Dashoard.Do We have the email option?

0 Kudos
4 Replies
JenniferAcunto
Esri Regular Contributor

No, but you could use Arcade and HTML in a list to create a dynamic mailto link. Clicking on the link would open the user's default email program with an email already composed.

JenniferAcunto_0-1680180834769.png

Note that you can't have any spaces, so you will want to use Arcade to URL encode your fields and use URL encoded values for any spaces or special characters you add between fields in the body or subject.

JenniferAcunto_1-1680181048894.png

var elink = Concatenate(['<a href="mailto:someone@example.com?subject=', UrlEncode($datapoint.DAM_NAME), '&body=', UrlEncode($datapoint.DAM_NAME),'%3A%20', UrlEncode($datapoint.RIVER), '" target="_top">Send mail!</a>'])


return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    elink: elink
  }
}

 

How to create mailto links

URL Encoder

- Jen
0 Kudos
jauhari_mani
Regular Contributor

@jcarlson @JenniferAcunto How to send all the layer data at once through email ?Do we have the option to send ?

 
0 Kudos
jcarlson
MVP Esteemed Contributor

Doesn't look like it. You can enable downloading data from a dashboad widget, but the button just calls a JS script that generates the download file. You could, of course, have an email link in the widget's description, which, combined with the data download option, would make the process quicker, but you aren't likely to get a single-click solution without some custom development.

- Josh Carlson
Kendall County GIS
0 Kudos
jauhari_mani
Regular Contributor

@jcarlson I am ready to customise the code,But what are the steps to achieve it?

0 Kudos