Haravan Trigger
Last updated
Last updated
Haravan Trigger Node in n8n is a node used to trigger a process (workflow) every time a specific event occurs on the Haravan platform. Haravan is a popular e-commerce system, and this node allows you to automate tasks and processes based on events from Haravan. Haravan Trigger Node is a powerful tool for creating automated workflows, enhancing performance, and optimizing your business processes when you use n8n with Haravan.
Customer Created
Customer Updated
Comment Created
Comment Updated
Collection Created
Collection Updated
Order Created
Order Updated
Order Changed
This workflow allows you to receive updates when a new collection gets added in Haravan and use their information to find products in the newly created collection. You can also find the workflow on n8n.io. This example usage workflow would use the following node.
Haravan Trigger
Set
Haravan
The final workflow should look like the following image.
The Haravan Trigger node will trigger the workflow when a new collection gets added in Haravan.
Select 'Collection Created' from the Events dropdown list.
Click on Execute Node to run the node.
In the screenshot below, you will notice that the node returns the information of the new collection that was added to Haravan. This output gets passed on to the next node in the workflow.
We will use the Set node to ensure that only the data that we set in this node gets passed on to the next nodes in the workflow.
Click on Add Value and select 'Number' from the dropdown list.
Enter Collection ID
in the Name field.
Click on the gears icon next to the Value field and click on Add Expression.
Select the following in the Variable Selector section: Current Node > Input Data > JSON > id. You can also add the following expression: {{ $json.id }}
.
Click on Add Value and select 'String' from the dropdown list.
Enter Collection Name
in the Name field.
Click on the gears icon next to the Value field and click on Add Expression.
Select the following in the Variable Selector section: Current Node > Input Data > JSON > title. You can also add the following expression: {{ $json.title }}
.
Toggle Keep Only Set to true
. We set this option to true to ensure that only the data that we have set in this node gets passed on to the next nodes in the workflow.
Click on Execute Node to run the node.
In the screenshot below, you will notice that the node uses the data from the previous node and returns the data that we set for the workflow.
This node will use the data coming from the previous node to find products in the newly created collection in Haravan.
Select 'Retrieve a List of Collects' from the Operation dropdown list.
In n8n, paste the Token of your app in the Authentication Token field.
Enter the Collection ID in the Collection ID name field.
Click on Execute Node to run the node.
In the screenshot below, you will notice that the node finds all products belonging to the Collection ID value passed from the previous node.
First of all, you'll have to enter a path that you want to receive an event. Then you will copy Webhook URLs and enter this link into "Callback URL" field of your app or if you use a private app, you just add webhook and choose an event for which you want to receive data. Then fill your API path in the URL textbox. You can find out how to do that .
Enter the Token in the Authentication Token field. You can find out how to get that .