# Am I Making My Rules Correct?

**URL:** https://community.fibery.io/t/am-i-making-my-rules-correct/4340
**Category:** Get Help
**Created:** [April 18, 2023, 7:21pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340 "2023-04-18T19:21:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Joe\_H](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/joe_h/32/6575_2.png) [@Joe\_H](https://community.fibery.io/u/Joe_H)
#### Post date: [April 18, 2023, 7:21pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/1 "2023-04-18T19:21:24Z")

</div>

Howdy All,

I’m setting up some automation rules & wondering if I am doing this correctly/efficiently.  
I have a workflow field setup with “Inbox, Open, In Progress, & Done” & another field (checkbox) in the same database called “Done-Archive”.

To make them sync, I have 4 rules setup:

- Done-Sync 1: When the workflow is updated to done, check the box
- Done-Sync 2: When the checkbox is checked, update the workflow field to done.
- Done-Unsync 1: When the workflow is updated (except if set to done), uncheck the box
- Done-Unsync 2: When the check box is unchecked, update the workflow to “Open”

While it is functional, this feels like I am doing this not in the best way.

Side question – is there a way to ‘bundle’ rules? Our email integration auto-sorts tasks based on the folders imported from. Right now, I have separate rules that run every import that sorts each folder (4 or 5 at the moment) upon message creation… not sure if a relationship would be the best option (most tasks have messages & most messages have tasks, but not all of them).

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [April 18, 2023, 8:23pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/2 "2023-04-18T20:23:13Z")

</div>

> [@Joe\_H](#):
>
> I’m setting up some automation rules & wondering if I am doing this correctly/efficiently.

What are you aiming to achieve with the two different fields (workflow and checkbox)?  
Knowing that goes some way to figuring out the best (or least worst!) way of doing things 🙂

> [@Joe\_H](#):
>
> Our email integration auto-sorts tasks based on the folders imported from.

How/why do messages relate to tasks (not meaning Fibery relation, just semantic relation)?  
What is the folder sorting you’re referring to?

---

<div class="post-metadata">

### Author: ![Joe\_H](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/joe_h/32/6575_2.png) [@Joe\_H](https://community.fibery.io/u/Joe_H)
#### Post date: [April 18, 2023, 9:21pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/3 "2023-04-18T21:21:56Z")

</div>

> [@Chr1sG](#):
>
> What are you aiming to achieve with the two different fields (workflow and checkbox)?

Users are sometimes lazy – so some of them prefer to have a quick button to click to mark something done vs using 2 clicks (or sometimes a task is quick and doesn’t take long to complete).

> [@Chr1sG](#):
>
> How/why do messages relate to tasks (not meaning Fibery relation, just semantic relation)?  
> What is the folder sorting you’re referring to?

So, in this case – some messages are requests for pricing from customers, others are for purchase orders from customers. They funnel to the same department (sales), but have different workflows to process.

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [April 19, 2023, 6:27am UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/4 "2023-04-19T06:27:32Z")

</div>

> [@Joe\_H](#):
>
> some of them prefer to have a quick button to click to mark something done vs using 2 clicks

Have you considered having a button (e.g. ‘Mark as Done’) which changes the workflow state to Done when clicked, and maybe another button (‘Re-open’) to move the state to Open?

> [@Joe\_H](#):
>
> I have separate rules that run every import that sorts each folder (4 or 5 at the moment) upon message creation  
> …  
> some messages are requests for pricing from customers, others are for purchase orders from customers.

So is it right that you have multiple rules, each of which runs after a message has been categorised?

> [@Joe\_H](#):
>
> They funnel to the same department (sales), but have different workflows to process.

Is the ‘different workflows’ you’re referring to different behaviours of each automation rule, or are you referring to variations in what happens downstream?

---

<div class="post-metadata">

### Author: ![Joe\_H](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/joe_h/32/6575_2.png) [@Joe\_H](https://community.fibery.io/u/Joe_H)
#### Post date: [April 19, 2023, 9:04pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/5 "2023-04-19T21:04:28Z")

</div>

> [@Chr1sG](#):
>
> Have you considered having a button (e.g. ‘Mark as Done’) which changes the workflow state to Done when clicked, and maybe another button (‘Re-open’) to move the state to Open?

2 buttons would clutter up the table view more than a check box.

> [@Chr1sG](#):
>
> So is it right that you have multiple rules, each of which runs after a message has been categorised?

The messages are labelled with the folder they are imported from automatically. The multiple rules run upon creation of any message. Ideally, I could create one rule to sort them:  
When message created:  
\* if folder = RFQ, Task Created, Task Type Field Set to RFQ  
\* if folder = Order, Task Created, Task Type Field Set to Order

Essentially, it’s the same automation (sort/label), but configured slightly differently.

> [@Chr1sG](#):
>
> Is the ‘different workflows’ you’re referring to different behaviours of each automation rule, or are you referring to variations in what happens downstream?

Potentially – I haven’t iterated my fibery workflow that far yet. But basically, the actual work done is different outside of fibery (so the checklists/tasks I will be automating will be different). A request for pricing goes to one individual who keys it into our erp and begins working on the quote data entry and research. An order moves to contract review and data entry and approval.

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [April 19, 2023, 9:40pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/6 "2023-04-19T21:40:12Z")

</div>

> [@Joe\_H](#):
>
> 2 buttons would clutter up the table view more than a check box.

Well, you could use one button (‘Done/Re-open’) 🙂  
Or even just give it an emjoi for a name, e.g. 🔄 and it would take up not much more space than a checkbox.

> [@Joe\_H](#):
>
> The messages are labelled with the folder they are imported from automatically.

So is ‘Folder’ a single-select, or multi-select, or a text field?

> [@Joe\_H](#):
>
> When message created:
> 
> - if folder = RFQ, Task Created, Task Type Field Set to RFQ
> - if folder = Order, Task Created, Task Type Field Set to Order

It’s not currently possible to set select fields programmatically, unless you write a script :-/

---

<div class="post-metadata">

### Author: ![Joe\_H](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/joe_h/32/6575_2.png) [@Joe\_H](https://community.fibery.io/u/Joe_H)
#### Post date: [April 19, 2023, 9:52pm UTC](https://community.fibery.io/t/am-i-making-my-rules-correct/4340/7 "2023-04-19T21:52:38Z")

</div>

> [@Chr1sG](#):
>
> Well, you could use one button (‘Done/Re-open’) 🙂  
> Or even just give it an emjoi for a name, e.g. 🔄 and it would take up not much more space than a checkbox.

I will try that!

> [@Chr1sG](#):
>
> So is ‘Folder’ a single-select, or multi-select, or a text field?

Single Select – it is the label assigned during email import sync.

> [@Chr1sG](#):
>
> It’s not currently possible to set select fields programmatically, unless you write a script :-/

Understood!
