I use appsheet connected to a database. I have a view connecting all the data needed for a pdf attachment. I am trying to create an email using a workflow, but cant figure out how to trigger it. In short is there a way to trigger a workflow from an update to a different table in the same app?
No, not exactly. The workflow trigger itself will be tied to the table it runs on. But you can use Action - Perform an action on a set of rows to trigger the workflow from another table.
Another approach is to add a
[Trigger] column to your table and edit that column to trigger the workflow.
I use a hidden text column, and save the value:
USEREMAIL() & ", triggerKeyword, " & NOW()
Then you can use
SPLIT(INDEX()) to see which user, triggered which workflow, and when.
Would the action - perform an action on a set of rows work if the table it not editable? Its a view of multiple tables in a database…
A read-only table in AppSheet cannot trigger a workflow; a data change is required to trigger a workflow.
A workflow can use data from any table available to the app. There’s nothing that requires that the table that triggers the workflow must contain any data used in the generated report.
Do you need to specify the table in the google doc? Full_data[col 1]. How does it know where to look for the data. There could be multiple columns with the same name in different tables? Or do you have to write a start expression
You’d need to either use a
<<Start>> expression or use individual LOOKUP() expressions for each value. I’d think a
<<Start>> expression that produces the one row in which you’re interested would be easiest to work with.
I am circling back on this Steve. i still can’t figure it out. I tried a few different <> with not luck. I attached a video to hopefully help.
I’m afraid I’m unprepared to offer the help you’d need here: someone will need to dive into you app configuration. This might be something firstname.lastname@example.org may help with, or you might consider engaging an AppSheet partner.
I used an appsheet partner but I figured I would write the solve for anyone else. Essentially in one of the two columns where the data is being aggregated, you add a virtual column equal to the common KEY. Make that column a reference to the aggregated data. Let’s name that virtual column “F”. Then you can just put [F].[Col1] and [F].[Col2] in the google doc and it works!
Thanks again for all the help!