Skip to main content

Add Role

AutomatR.Zoho.Activities.AddRole

The "Add Role" activity in AutomatR is part of the Zoho CRM activities package, providing functionality to create a new role within the Zoho CRM system. This activity streamlines the process of managing roles, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Role NameSpecifies the name for the new role you are creating. String variables containing the role name.
Role IDSpecifies the role ID of the parent role under which you are creating the new role. String variables containing the role ID.
DescriptionProvides a description for the new role. String variables containing the role description.
Share With PeersIf checked, users with the current role can share records with other users. Boolean variables indicating whether to enable sharing with peers.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Add Role" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1.
Output
ResultOutputs the role ID of the newly created role. String variables containing the new role ID.

How to use:

  1. Drag and drop the "Add Role" activity onto the workflow.
  2. Configure the properties by specifying the role name, role ID, description, and optional settings such as delay and sharing with peers.
  3. Execute the workflow to create a new role within the Zoho CRM system.
  4. The role ID of the newly created role is stored in the "Result" variable for further reference.

Example: Consider an example where the "Add Role" activity is used to create a new role named "Manager" under the parent role with the ID "12345" with a description and sharing with peers enabled:

Add Role:
Delay: 0
Role Name: "Manager"
Role ID: "12345"
Description: "Role for managerial tasks"
Share With Peers: true
Result: newRoleID

In this example, the activity creates a new role named "Manager" with the specified properties. The role ID of the newly created role is stored in the variable "newRoleID" for further use.