How to Test a Workflow in Document Studio
Preview runs a task, or the whole workflow, once with sample values. Use it to check the document, the email and the file name before the workflow touches your real rows.
A preview does real work. It creates a real file in Google Drive and sends a real email, but the email goes to you and not to the recipients of the task. A preview does not write to the sheet, and it does not mark a row as processed.
An Example
Section titled “An Example”Maya’s workflow creates a certificate and emails it to the student. Before she runs it for 40 students, she wants to see one certificate and one email in her own inbox.
Test One Task
Section titled “Test One Task”-
Open the workflow and go to the Tasks step.
-
Click Edit beside the task, such as Create File.
-
Fill in the task, then click Preview. Document Studio checks the required fields first and shows a message if one is empty.
-
The Preview Task screen lists every column of your sheet under Sample Data, with the values of the first data row.
-
Change the values that matter. Maya types her own name in
Name, to see how a long name fits on the certificate. -
Click Test Task. The message Test complete! appears when the task has run. For a file task, a View File link appears below the sample data.
-
Check the result in the place where the task writes:
Task Where to look Create File The folder that the task saves to, in Google Drive Send Email Your own inbox. A preview sends the email to your address only, with no CC or BCC. Slack, Google Chat The channel or space that the task posts to Webhook The app that receives the request -
Click Test Again to repeat the test with other values, or Continue to return to the task.
If the task reports a problem, the message shows in the yellow box below the sample data.
Test the Whole Workflow
Section titled “Test the Whole Workflow”-
Go to the Save step of the workflow.
-
Click Preview. The Preview Workflow screen opens with the same sample data.

Change any sample value, then click Test Workflow (1). -
Change the values and click Test Workflow.
Every task runs once, from top to bottom. A later task uses what an earlier task made, so the test email has the test certificate attached.
What a Preview Skips
Section titled “What a Preview Skips”| Part of the workflow | In a preview |
|---|---|
| Conditions | Not checked. Every task runs. |
| Time delay | Ignored. The task runs at once. |
| Status columns in the sheet | Not written |
| The recipients of Send Email | Replaced by your own address |
| Your limit of documents and emails | Counted. A test file uses one document of your limit. |
To test a condition, run the workflow for one real row instead. See Run a Workflow.
Things to Know
Section titled “Things to Know”- Sample values come from row 2 of the sheet, the first row below the titles. If the sheet has only titles, the boxes are empty and you type every value.
- Your changes to the sample data are kept while the window is open. They never change the sheet.
- A preview never emails your recipients. The test email goes to the Google account that you are signed in with, whatever the sample data says.
- Other tasks do reach real people. A preview of Slack, SMS, WhatsApp or Webhook posts to the real channel, phone number or address. Point the task at a test channel or your own number first.
- Delete the test files from Drive afterwards. A preview’s file looks like a real one.
- A preview needs a saved place to write. Choose the template and the folder in the task before you click Preview.
Troubleshooting
Section titled “Troubleshooting”The Preview screen shows no boxes
Section titled “The Preview screen shows no boxes”Document Studio could not read the sheet. Check that Source Worksheet on the Source step names a sheet with column titles in row 1.
A marker is empty in the test document
Section titled “A marker is empty in the test document”- The sample value for that column is empty. Type a value and click Test Again.
- The marker in the template doesn’t match the column title. See Markers.
The test email didn’t arrive
Section titled “The test email didn’t arrive”A preview sends the email to your own address. Look in your inbox and in Spam. If the email is not there, read the message in the yellow box below the sample data.
“Generating sample data…” doesn’t finish
Section titled ““Generating sample data…” doesn’t finish”Close Document Studio and open it again. If several Google accounts are signed in, sign out of the others first.
