> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/automations/best-practices-screensteps/actions-best-practices.md).

# Actions best practices

**Custom Apex actions/rules/variables**

* The custom apex Actions/Rules/Variables must control the SalesForce limits and in case of approaching them must throw the Work-Relay LimitException.
* The custom apex Actions which executes in background must handle SalesForceSF exceptions in a good manner.

**Step actions vs. global actions**

* Avoid using Global Actions on Steps when possible to use Step Actions.
