Quick Capture - Button link - Parts of email not working

317
2
08-18-2022 05:34 PM
HeatherKetten2
New Contributor II

I have a Quick Capture project that is working well so far. 

However, I can't seem to get all of the available fields to work when I create a "link" button and then use the URL formatting to customize a default email to send (following this format). Only some of the fields are populating in the body of the email. So I went ahead and put all of the fields I might ever use into my sample email, to see what would work and what wouldn't.

Here is what I put in:

mailto:myemail@city.gov?subject=Stuff%20Tracker%20Help&body=A%20Stuff%20Tracker%20field%20worker%20needs%20assistance.%0D%0A%0D%0A${captureTime}%0D%0A%0D%0A${azimuth}%0D%0A%0D%0A${pitch}%0D%0A%0D%0A${roll}%0D%0A%0D%0A${magneticDeclination}%0D%0A%0D%0A${powerMode}%0D%0A%0D%0A${batteryState}%0D%0A%0D%0A${powerSource}%0D%0A%0D%0A${batteryLevel}%0D%0A%0D%0A${appVersion}%0D%0A%0D%0A${operatingSystem}%0D%0A%0D%0A${deviceModel}%0D%0A%0D%0A${projectName}%0D%0A%0D%0A${installUUID}%0D%0A%0D%0A${latitude}%0D%0A%0D%0A${longitude}%0D%0A%0D%0A${altitude}%0D%0A%0D%0A${horizontalAccuracy}%0D%0A%0D%0A${verticalAccuracy}%0D%0A%0D%0A${DMS}%0D%0A%0D%0A${DDM}%0D%0A%0D%0A${USNG}%0D%0A%0D%0A${MGRS}%0D%0A%0D%0A${speedMS}%0D%0A%0D%0A${speedKPH}%0D%0A%0D%0A${speedMPH}%0D%0A%0D%0A${speedKTS}%0D%0A%0D%0A${direction}%0D%0A%0D%0A${directionCardinal4}%0D%0A%0D%0A${directionCardinal8}%0D%0A%0D%0A${activityType}%0D%0A%0D%0A${username}%0D%0A%0D%0A${fullName}%0D%0A%0D%0A${firstName}%0D%0A%0D%0A${firstName}%0D%0A%0D%0A${lastName}%0D%0A%0D%0A${email}%0D%0A%0D%0A${userInput:003}%0D%0A%0D%0A${userInput:002}%0D%0A%0D%0A${userInput:005}

 

and here is the resulting email - I have bolded the fields that worked:

A Stuff Tracker field worker needs assistance.

${captureTime}

${azimuth}

${pitch}

${roll}

${magneticDeclination}

${powerMode}

${batteryState}

${powerSource}

${batteryLevel}

${appVersion}

${operatingSystem}

${deviceModel}

${projectName}

${installUUID}

30.44896924

-97.62843571

195.9215087890625

${horizontalAccuracy}

${verticalAccuracy}

${DMS}

${DDM}

${USNG}

${MGRS}

${speedMS}

${speedKPH}

${speedMPH}

${speedKTS}

${direction}

${directionCardinal4}

${directionCardinal8}

${activityType}

my correct logged in AGOL account name

${fullName}

${firstName}

${firstName}

${lastName}

${email}

${userInput:003}

${userInput:002}

${userInput:005}

The last three fields are the Project User Inputs for the project, which I filled out when testing the app.

Any thoughts as to why so many of the fields aren't working?

Thanks

0 Kudos
2 Replies
JohnathanHasthorpe
Esri Regular Contributor

Hi Heather - I'm looking into this for you

0 Kudos
HeatherKetten2
New Contributor II

Thank you! I am still in the early stages of this project, so it's fine if it takes a little while to sort out. I can make do with just the coordinates for now - that way we can at least grab a user's location who needs assistance - but some of the other fields could be useful for troubleshooting app issues. Appreciate it!

0 Kudos