You can learn more about sending email, using templates, and using expressions with workflow in the Workflow: Sending Email section.
The most common support questions for workflow rules are:
- Why isn't my workflow rule working?
- Why didn't the email arrive?
- Why isn't the email attachment formatted correctly?
- Why are the images in PDF attachments too large or too small?
- How do I show maps in PDF attachments?
Why isn't the "Test" button working?
If clicking the "Test" button on the Behavior > Workflow pane does not invoke your workflow rule for testing, make certain that your browser is not blocking pop windows.
For the Google Chrome browser:
- Click the Customize and control Google Chrome button on the top right of the browser's toolbar.
- Select Settings from the dropdown.
- Expand Advanced settings at the bottom of the page
- Under Privacy and security, click the arrow following Content settings.
- Click the arrow following Pop-ups and redirects.
- Add https://www.appsheet.com:443
Why isn't my workflow rule working?
Use Audit History to troubleshoot workflow problems.
Do this as follows:
- Open your application in the AppSheet Editor.
- Go to the Manage>Monitor tab and click "Audit History". Then click "Get audit history records".
- Look for audit records with an "Action" value of "Change workflow rule" or "Scheduled report".
- You may need to wait for up to five minutes for the audit record to appear. We group audit records and periodically write the grouped audit records to reduce overhead. This can result in a delay before an audit record appears in the audit history. You may need to wait a short while and then click "Get audit history records" again to see the audit record.
- Click the "Details" icon to see the outcome of the workflow rule.
- If the workflow rule did not fire, the Details give the reason for this.
- If you see "Result": "Success" at the end of the audit record, then AppSheet successfully fired the action in the workflow rule.
Emails are Only Sent to App Creator
While the app is in test mode (i.e. it has not passed a Deployment Check), any emails sent from workflow actions will go only to the app creator. This ensures that you do not inadvertently send email messages, send SMS messages, send notifications, or post HTTP messages while debugging your workflow rules.
Why didn't the Email arrive?
Firing the action (usually sending an email message) from the AppSheet server does not mean that the action was successfully completed (the email message was received by the recipient). Since email is the most commonly used action in a workflow rule, here are the steps to follow if the email was sent but was not received by the recipient.
- It may have been blocked by an email filter. Check the "spam" email folder to see if the email was redirected there.
- It may have been blocked by the email service because the attachment was too large.
Why isn't the email attachment formatted correctly?
In your workflow rules, you can define parameterized Google Doc document templates that will be instantiated, converted to PDF files, and sent as attachments with the workflow email. Occasionally, these attachments are not formatted identically to the original document template. To troubleshoot such problems, it is important to understand the three steps followed by AppSheet in processing these attachments:
- Export Google Doc to HTML
- Modify HTML to replace placeholders with values
- Convert HTML to PDF
Inconsistencies in format could be introduced at step 1 or step 3 because neither maintains complete fidelity in the document format. Most commonly, the problems are at Step 1 and can be fixed by you. The trouble-shooting steps to follow are:
- Try to export the Google Doc straight to PDF and check that it does it correctly. If not, try tweaking the formatting options in the Doc until it exports to PDF the way you want.
- If it exports correctly to PDF, then export to HTML and open that in a browser. Check if the format is right, and tweak the formatting options to ensure that it exports with the right format.
Why are the images in PDF attachments too large or too small?
You can control the size of images shown in the workflow email body or attachments. By default, columns/expressions of type Image are shown larger than columns/expressions of type Thumbnails. You can specify a Format Rule (in the UX>Format Rules section of the app editor) to further control the size of images in your workflow email content. In the format rule, you get to choose the table, one or more columns, an optional condition, and the image size (Tiny, Small, Medium, Large).
How do I control when and how maps are shown in my attachment PDF?
You can control how geographic column values (Addresses and LatLongs) are shown in the workflow email body or attachments. By default, columns/expressions of type LatLong are shown as static maps with a pin, while columns/expressions of type Address are shown as text. You can specify a Format Rule (in the UX>Format Rules section of the app editor) to further control the size of static maps in your workflow email content. In the format rule, you get to choose the table, one or more columns, an optional condition, and the image size (Tiny, Small, Medium, Large, or Text). Choosing 'Text' results in the textual representation of the value being shown in the attachment.
Why is the parent record displayed but the child records are missing?
Currently, when you add a parent record along with one or more children records, we first add the parent record, and we then add each of the child records. If your workflow rule is triggered when the parent record is added, the workflow rule will not display the child records because they have not yet been added when the workflow rule runs.
Topic "Sending Email After Adding a Parent Record and All of Its Children" in this article explains how to deal with this.
Why is the error "Request cancelled: took too long to process" occurring?
AppSheet has a mechanism to prevent runaway applications from consuming too much time and impeding other applications that are running at the same time.
When we begin an Add, Update, or Delete request, we start a timer that runs for 2 minutes. We expect the request to finish within that 2 minute time limit. This includes the time to perform the Add, Update, of Delete as well as the time to perform any workflow rule triggered by that Add, Update, or Delete.
We check the time limit when:
- Computing Virtual Columns
- Applying Security Filters
This can occur when we are evaluating an expression that requires reading a table and applying a Security Filter to it.
- Fetching Values from a Table
This can occur when you have Virtual Columns that contain expressions that refer to other tables. We must read those tables, apply the Security Filters for those tables, and compute the Virtual Column values for those tables.
You may exceed these time limits if:
- You have lots of Virtual Columns having AppFormulas that are expensive to evaluate.
- You have Virtual Columns having AppFormulas that require reading other tables. When evaluating these AppFormulas, we must read those other tables, apply Security Filters for those tables, and compute the value of the Virtual Columns for those tables.
- You have workflow rules that are expensive to perform. Workflow rules having complex Body or Attachment templates can be expensive. They may include Start expressions that require reading other tables, applying Security Filters for those tables, and computing the values of the Virtual Columns for those tables.