Learn how to automate the addition of cancelled Shopify order details into MongoDB using Pabbly Connect. Follow this step-by-step guide to streamline your process. Revolutionize your productivity approach with just a few strategic clicks. Uncover professional methods for connecting applications and creating workflows that reclaim hours of your week.
Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for Shopify and MongoDB Integration
To integrate cancelled Shopify order details into MongoDB, we first need to set up Pabbly Connect. This platform will serve as the bridge between Shopify and MongoDB, automating the process of transferring order details. Start by signing up for a free account on Pabbly Connect, which can be done in just a few minutes.
After signing up, navigate to the Pabbly Connect dashboard. Click on the ‘Create Workflow’ button to initiate a new automation. Name your workflow, for example, ‘Shopify to MongoDB’. Choose a folder for your workflow and click on ‘Create’ to proceed. This will open a new workflow window where you can set up the trigger and action steps.
2. Trigger Setup for Shopify Order Cancellation
In this step, we will configure the trigger for our workflow using Pabbly Connect. Select Shopify as the application and choose the trigger event as ‘Order Cancelled’. This event will notify Pabbly Connect whenever an order is cancelled in your Shopify store.
- Select Shopify from the application list.
- Choose ‘Order Cancelled’ as the trigger event.
- Copy the webhook URL provided by Pabbly Connect.
Next, you need to add this webhook URL to your Shopify account. Go to the Shopify settings, navigate to Notifications, and then to Webhooks. Click on ‘Create Webhook’, select ‘Order Cancellation’ from the event dropdown, set the format to JSON, and paste the webhook URL. Save the changes to complete the trigger setup.
3. Capturing Order Details in Pabbly Connect
Once the trigger is set up, Pabbly Connect will wait for a response from Shopify regarding cancelled orders. To test this, cancel an order in your Shopify account. As soon as the order is cancelled, Pabbly Connect will capture the order details, including customer information and product details.
In the Pabbly Connect workflow, you will see a response indicating that the order details have been successfully received. The response will contain information such as the customer’s name, email, mobile number, product name, and order ID, which are crucial for the next steps in our automation.
4. Connecting MongoDB to Pabbly Connect
The next crucial step is to connect your MongoDB account to Pabbly Connect. In the action step, search for MongoDB and select it as the application. Choose ‘Create Record’ as the action event. This will allow you to add the captured order details into your MongoDB database.
To establish this connection, you will need your MongoDB connection string. Go to your MongoDB account, access the Network Access section, and add your current IP address. Then, navigate to your cluster and copy the connection string. Paste this connection string into Pabbly Connect and enter your username, password, and database name where you want to store the order details.
5. Mapping Data to MongoDB and Testing Automation
After connecting MongoDB, it’s time to map the order details captured by Pabbly Connect to the fields in your MongoDB collection. Create keys for the data you want to store, such as customer name, email, mobile number, product name, order ID, quantity, and total price.
- Define keys for customer name, email, mobile number, product name, order ID, quantity, and total price.
- Map the captured data from Shopify to these keys in MongoDB.
- Click on ‘Save and Send Test Request’ to verify the integration.
Once the test request is successful, check your MongoDB collection to confirm that the order details have been added correctly. This completes the automation setup, allowing you to seamlessly transfer cancelled Shopify order details into MongoDB using Pabbly Connect.
Conclusion
By following this tutorial, you have successfully automated the process of adding cancelled Shopify order details into MongoDB using Pabbly Connect. This integration streamlines your workflow and ensures that you have accurate records of all cancelled orders.
Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.
- Check out Pabbly Connect – Automate your business workflows effortlessly!
- Sign Up Free – Start your journey with ease!
- 10,000+ Video Tutorials – Learn step by step!
- Join Pabbly Facebook Group – Connect with 21,000+ like minded people!