Circuits in Zoho CRM
Circuits is a platform for integrating micro-services to create automated workflows. With sophisticated flow controls, you can create custom applications or processes as workflows.
Workflows created in Circuits are state machines that maintain the states of each step where the output of one step acts as an input to another. State machines help you create smart workflows that can retry, wait, or make decisions when there is an error.
Advantages of using Circuits in CRM
- Orchestrate and Automate Tasks
Circuits are highly beneficial in automating major portions of your application logic in elaborately designed workflows. The circuit triggers each configured state automatically, passes customized data to the states based on its configuration, handles the flow of application logic at every step, performs error handling and more. Your application, therefore, executes in order as you orchestrate it. You can coordinate various individual components of your microservice to work together as you need, and enable collaboration between them.
- Configure Complex Workflows Easily
The business requirements and workflows of an application are translated into flow diagrams that are easy to comprehend and work on. The flow diagram of a circuit provides a quick glance over the application logic and helps you visualize it as a series of steps. It enables you to understand the circuit's flow without efforts, detect problem areas, modify its elements, arrange states or easily remove them. Circuits also enhance your application design and render it well-structured and organized.
- Diagnose Errors and View Detailed Logs
The error-handling functionality in a circuit combined with detailed logs enables you to easily diagnose and debug problems in the workflow. You can define custom actions to be taken during errors in the function, batch, and circuit states. This enables you to manage errors like execution timeouts and failure, and authorization failure automatically. The detailed logs of each execution provide the status of each state's task execution, the payload and parameters passed, and the responses and exceptions generated.
- Simple JSON Code
You can use Code View to write the JSON implementation of your circuit. A state name is a JSON object and its properties are the key-value pairs of that object. Properties like type and next are commonly used for all states. All you have to do is follow the standard JSON syntax while coding.
- Use Existing Functions
Circuits allow you to use existing functions in your code. These functional states help you execute and control your business logic in circuits. You can also use a circuit within a circuit.
Circuits is available for the Enterprise and above editions of Zoho CRM.
Available circuit credits for the Enterprise edition - 15000.
Available circuit credits for the Ultimate edition - 20000.
Each transition(one state to another) consumes one circuit credit. Apart from circuit credits, if there are functions in each state, which in turn, invoke CRM APIs, they will also consume functions and API credits, respectively.