I have an app that generates an email that sends out just fine.
I’d like to pull in some data from an outside source (wunderground.com) to incorporate the hourly forecast table into the workflow email.
I was hoping I could pull data from the Weather table into the first, which would then push that into the workflow email that gets sent, but I must not have the right button checked.
Or is this even the best way to accomplish this?
Any suggestions or help would be awesome!!
You can definitely include data from another table, in your email template.
One way to do this is to write a Start expression that selects one or more rows from the second table.
That Start expression would typically select the row or rows in the second table based on values in the current record from the first table. Your template can them display the appropriate field values from the second table. This article shows examples of templates having Start expressions that display rows from a second table. https://help.appsheet.com/en/articles/2697047-sample-email-templates
Alternatively, you might include one or more Virtual columns in your first table that have AppFormulas that obtain data from the second table. You could then display those Virtual column values in your template.
The first approach is normally better when you wish to display more that one row from the second table.
so…i was finally able to get my data from the weather table into my email notification (yay!), but not exactly in a very friendly format…it looks like this:
As that web service is returning HTML, I wonder if you could get that nice table formatting if you use a HTML template rather than a Google Doc template (which is what I presume you are using.)
I’ve not been able to figure out the template thing for some reason. When I tell AppSheet to create the template, nothing happens (a template isn’t made/placed where it tells me it should be).
The email that goes out is the default body template:
I did try to use a START: & <>, but honestly that broke the email that got sent.
I checked for carriage returns, as that seems to be a common failure point, but that didn’t seem to be the issue.