Zoho Inventory-Automation
For sending automated messages from ZOHO Inventory
- Firstly, you will need to create a webhook.
- Then workflow rules to associate that webhook.
Create Webhook:
- Go to Settings from the top right corner -> Automation ->New Workflow -> Webhook
[Image]
[Image]
- Fill in the following details :
- Workflow Rule Name: Give a name to the webhook
- Module: Select the module from where you will be sending the message. Over here, we have selected Invoice.
- Description: Give a small description of your workflow rule.
- Choose when to Trigger :
[Image]
You can choose when to trigger the workflow based on the parameters you select in the following fields.
- Event-Based:
If the workflow is Event-Based, then the workflow is triggered when a module is:
- Created
- Edited
- Created or Edited
- Deleted
When a module is Edited or Created or Edited, additional fields appear.
- Date Based:
If the workflow is Date Based, additional fields appear.
[Image]
[Image]
[Image]
- Filter the triggers
Filter the triggers section allows you to set one or more conditions based on which the action will be executed.
[Image]
[Image]
[Image]
[Image]
[Image]
- Trigger Type
There are two types of workflows:
- Immediate
- Timed Based
[Image]
- URL to notify: put the following URL in the field https://api.sms-magic.com/api/v2/message/send
- Method: Select POST
- Under Entity, Parameters select Append Selected Parameters
[Image]
- Checkbox the Add User-defined Parameter field and put text in the Parameter Name section
[Image]
- Paste the following XML in the Value Description section :
[Image]
Note: The above XML is for the Invoice module, however, the XML needs to be modified accordingly for sending automated messages from other modules.
Below is the description of parameters used in the XML.
<username>: username registered at our end<senderid>: since these will be transactional messages therefore it will AITFTS the sender registered with the provider<accountid>: SMS Magic account Id<apikey>: you can copy the API key from SMS-Magic portal- (US Server: app.sms-magic.com)
- (EU Server: eu.app.sms-magic.com)
[Image]
<message>: SMS text that you want to use for sending a message. If you want to add merge fields like contact name, select module and the field. Take the cursor where you want to add the field and click on Insert Placeholder.
[Image]
- Record Id: record Id passed in the XML will differ with different modules. Over here, the message is getting triggered from the Invoice module, therefore, the record Id of the Invoice is passed. You can fetch the record id by selecting the module name and the record id and insert them in front of the record Id parameter.
[Image]
- Mobile number: Pass the field where the mobile number is stored. You can fetch the mobile number by selecting the module and the mobile field and pass the value in the mobile number parameter.
[Image]
- Module name : Lastly, pass the module name in the module name parameter.
[Image]
- Click on Save once all the details are filled in.
