# Making business critical connections (queues)

**URL:** <https://community.triggre.com/t/making-business-critical-connections-queues/763>\
**Category:** Automation flows\
**Tags:** designer, automation-flows\
**Created:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/making-business-critical-connections-queues/763 "2019-12-31T23:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mar](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/mar/32/395_2.png) [@Mar](https://community.triggre.com/u/Mar)\
**Post date:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/making-business-critical-connections-queues/763/1 "2019-12-31T23:00:00Z")

</div>

When using interfaces to other systems, it’s a good idea to keep record of the outbound traffic. If you do, you can resend the data if something ‘across the border’ went wrong.

It is also very convenient for testing: you can send the same data time after time until you are happy with the results.  
‍  
In this example we use Zapier for sending an email to a teacher when a student has completed a question of an online **Questionnaire**.

## How it works

Our case is a student who answers questions online.

1. The student completes a question.

2. After completion of the question, the **User flow** creates a log with the data for Zapier.

3. After that, the **User flow** updates _Sent to Zapier_ in the log with the **Current date and time.**

4. Zapier reacts to the update by sending an email.

The reason why you don’t want Zapier to react on the _Create_, is that if something went wrong in the process, you might want to send the data to Zapier again.

You achieve this by updating the _Sent to Zapier_ **Property**. This is also handy for testing: by updating _Sent to Zapier_ in the **Data items** you want to send, you trigger Zapier.

## Step 1: create the Data item

Create the **Data item** _Answered questions log_ for Zapier.

Be aware that you don’t use **References** to other **Data items** : Zapier cannot process **References**. Therefore you have to store the actual values of the data into the log.

Bonus: this guarantees that the **Log data** will not change when **References** change afterwards.

 ![Data item for Zapier](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/e46364ebaed1b012b3b6bea2b47ac74fa8d217a0.png)

## Step 2: modify the User flow where the student answers the question

1. Insert _Create Answered question log for Zapier_ after _Update My question_. Fill all **Properties** except _Sent to Zapier_,
2. Insert _Update Answered question log for Zapier_ after that. Store the **Current date and time** in _Sent to Zapier_.
3. This will trigger Zapier.  
 ![Zapier user flow](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/d136a93b61274d0a795cab67e66906041fb4a05e.png)

### The **Flow part** that creates a _Sent to Zapier_

This **Flow part** is called by the **Automation flow** _New answered question for Zapier._

## Step 3: create the User flow _Answered questions log for Zapier_

1. Using the **Wizard** , create a **User flow** for managing the log.

2. Insert the **Button** _Trigger Zapier_.

3. The **Button** applies to the selected item in the **Table** and updates _Sent to Zapier_ to the **Current date and time**.

4. This will trigger Zapier.

> Tip: If you insert a **Button** that calls a **Flow part** that updates all **Log items** at once, you can resend all items in one **Action**.

 ![Answered question Zapier log](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/7db1faced28d2f5a3935082384cb7105fbf66dfc.png)

### The log:

 ![Zapier log](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/d97ca56ea4df930d42a2a348d614008dcdbd50f2.png)

### The re-send email:

 ![E-mail result](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/60a70e3d7274a1a118994b0438102331bdb21ed1.png)
