Best practices in Automation

Use the 'Set new status if any actions fail?' option

It's possible that Automation will not be able to carry out the actions. In order to ensure that you have visibility of issues that arise, we strongly recommend that you use the option to set a new order status in the event of any issues.

mceclip0.png

You can then either periodically check this order status within Brightpearl, or have an email sent to you whenever an order is set to this status. You can configure this at Settings > Sales > Sales statuses.

If Automation cannot carry out the action for a legitimate reason, such as not being able to fulfil an order due to insufficient stock, this will not trigger the order status change. The order will continue to be monitored until the actions can be completed.

Monitor your rules

mceclip1.png

Once you've created a rule, you should always monitor the effect it's having by viewing the logs. The last 30 day's worth of changes made by Automation can be viewed by selecting 'View log' on the Automation settings page. These logs can be filtered by order ID, rule name and status so you can easily find what you're looking for. You can jump to orders and make changes to rules directly from this page by clicking the links in the logs. 

mceclip2.png

Even once established, it's best practice to periodically (at least monthly) check the logs for errors to ensure that things are running smoothly.

Use status update to test your conditions

If you're unsure about whether the conditions you've created are targeting the correct orders, create the rule in full, but instead of applying all the Automation actions you're wanting to use (invoicing, fulfilling etc.), just update the status to a new temporary status. In this way, you can reassure yourself that your conditions are correct by monitoring orders coming into that status. Once you're happy, add the other actions. In the event of a mistake, correcting a status change is much simpler than un-invoicing or having to backtrack on fulfilment. Just don't forget to process those orders you get during testing!

Avoid errors

This sounds obvious, but you should write your rules in a way that avoids errors. Poorly written rules may cause errors as a matter of course (such as routinely attempting to change invoiced orders, or fulfilling an order which has already been fulfilled - neither of which are possible).

You want any errors you get to be the result of genuine problems that need investigating, rather than being a number that you habitually ignore. If you're seeing errors when there's nothing really going wrong, you need to improve the rule.

Ensure you use conditions to exclude any scenarios which would cause the error, such as setting the condition 'Invoiced = No' to rules with the action 'Invoice order'. Again, use the log within the Automation settings to identify errors and correct.

Use statuses in your conditions, and update statuses after you've applied your chosen action

It's good practice to map automation to a specific part of your workflow, and a good way to do this is by using order statuses. In this way, you can avoid Automation acting on orders when you might not want them to.

For example, you may have multiple rules set up to update the shipping method depending on product SKUs contained in the order. However, it's possible that more than one of these rules could be true, as orders might contain SKUs from multiple rules.

Have more questions? Submit a request