Welcome to a practical Zapier tutorial! In this guide, you'll learn how to set up automatic email notifications for admins for newly created listings that are pending approval.
This Zap will have two versions: one that works with the free Zapier plan and triggers at the time the first listing draft is created, and another that requires a paid Zapier plan, but only triggers once the listing has been fully created.
Already familiar with setting up zaps? Find the Zap templates here:
If you haven’t gone through the introduction and the action/event article of our Zapier collection, we encourage you to do so to better understand how things work. But if you want to dive straight into action, feel free to read on!
About Zapier
Zapier is a powerful and versatile tool that allows you to integrate different services to one another. You can learn more about Zapier in our introductory article or through this brief video from Zapier.
What you need for this tutorial
External accounts
Any Zapier-supported email service
Make sure you have a Zapier-supported email account where you want to set the notifications from.
It's a good idea (but not necessary) to use the same email address that you set up as the outgoing email of your marketplace.
Zapier Account
Create a Zapier account if you don’t already have one. You can sign up at www.zapier.com.
During registration, Zapier may ask which apps you plan to use. You can enter Sharetribe at this point or add it later.
How to set up your marketplace
Here is how you should set things up in brief:
Enable restrict posting rights feature
Ensure that the restrict posting rights feature is enabled in your Sharetribe marketplace.
Marketplace Activity
Your marketplace needs to have at least one recently created listing pending approval.
If you haven't created one, go ahead and do so now!
You’ll also need to create an application using the Integration API. For the purposes of this tutorial, you don’t need to know details about using the APIs, but if you want, you can read about them from our technical documentation here.
Finally, the marketplace needs to be configured so that all new listings require approval from admins. This can be configured in the "General" section of the Console, in the "Listing approval" section.
With these pieces in place, let's get started!
Getting your Integration API key from Console
Navigate to Build > Advanced > Applications
Click on “+ Add a new application”
Give the application a descriptive name (like Zapier), and select ‘Integration API’.
Click ‘Add application’.
Important: Copy and paste the Client ID and Client secret to a safe place, like a password manager.
IMPORTANT: Think of the Client ID and Secret as a sort of a password to your marketplace that can be used to access your marketplace data through other services. Note that you won’t be able to ever see the Client secret to this application again in the Console under any circumstances. Make sure you copy it to a secure place. If you lose it, you will need to create a new application.
Functional differences between the Zaps
As mentioned in the beginning of this article, there are two different versions of this Zap available below. To clarify the need for the difference: the 'listing created' event actually occurs not when the listing is fully created, but rather as soon as the provider has filled out the first page ('Details') in the listing creation screen.
At this point in time, a draft of that listing is created, and is visible in the Console, even though not all the listing details have been entered and the listing can't yet be approved by an admin. For instance, the price, delivery/shipping options, and photos have not yet been added to the listing, as those all come after the 'Details' section of the listing creation is finished.
What this means is that the more simple Zap technically already triggers before the listing is really ready for approval. However, in many cases, the listing creators quickly finish creating the listings, maybe within a minute or two. For this reason, sending the notification prematurely may not matter, as the listing is often created by the time the administrator reacts to the email that is automatically sent by this Zap. Furthermore, it allows you to use the free Zapier plan which is limited to two-step zaps, so it's a great way to save costs.
However, there's a second version of this Zap available below, which parses all the listing events on the marketplace, and only triggers when it notices that the listing is specifically in the state of pending approval. This means that when you receive the notification email, you can rest assured that the listing is available to be approved immediately, and not 1-2 minutes (or more) later. Since this Zap is more complex, it requires at least the Professional plan of Zapier, which supports multi-step Zaps.
You can choose whichever of these Zaps better suits your preferences, of course!
Creating the Zap, step by step
(Optional) Importing a pre-existing Zap
Go to www.zapier.com and log in with your account (or create a free one, if you don't already have one)
Open the pre-made Zap for sending an email to admins for new listings here.
Click on ‘Try this Zap'
Step 1: Find a recent listing creation from your marketplace
Connect your Sharetribe account by entering your Client ID and Client secret
Click ‘Continue’ to move to the ‘Trigger’ section
Choose ‘Listing created’ as the ‘Event type’
Click ‘Continue’ to move to the ‘Test’ section
Test the trigger, and make sure it finds a recent listing creation event from your marketplace
Click ‘Continue with the selected record’ to move to the next step
Step 2: Send an email about the new listing
In the ‘Account’ section, Sign in with your Gmail account
Click ‘Continue’ to go to the ‘Action’ section
In the ‘To’ address, choose the email address you want to send the notification to. You can add multiple addresses, also as CC, if you want multiple addresses to receive the notifications.
(Optional) Add a "From Name" that shows up as the sender name, for example your marketplace's name
In the ‘Subject’ field, write the desired subject. You can also use details from the listing itself, if you want the message title to give more information. For example, you can write "New listing: " and then choose "[1. Listing Title]" from the drop down list that appears. This way, each message includes the new listing's title in it.
In the ‘Body’ field, you can write whatever you wish, and also include a direct link to your marketplace's listing section for convenience. For example:
“A listing called "[1. Listing title]" was just created on Biketribe. The listing needs to be approved before it is displayed on the marketplace. Go to Biketribe at https://console.sharetribe.com/a/listings to view and approve or decline the listing.
The description of the listing is as follows: [1. Listing Description]”
This would translate to something like:
“A listing called "Mountain bike" was just created on Biketribe. The listing needs to be approved before it is displayed on the marketplace. Go to Biketribe at https://console.sharetribe.com/a/listings to view and approve or decline the listing.
The description of the listing is as follows: A used mountain bike in very good condition, made by Canyon. Used for two years, only during the summers. The price is non-negotiable, but I can deliver the bike for free if you live within a 30 minutes drive from where I live.”
6. Unless you have a reason not to, you can leave all other fields empty.
7. Go to the ‘Test action’ and test the zap. If everything went well, you should now get an email to your inbox that has the listing title, its description, and a direct link to the right Console page that allows you to review and approve or reject the listing.
Creating the multi-step Zap, step by step
(Optional) Importing a pre-existing Zap
Go to www.zapier.com and log in with your account (or create a free one, if you don't already have one)
Open the pre-made Zap for sending an email to admins for new listings here.
Click on ‘Try this Zap'
Step 1: Find a recent listing update from your marketplace
Connect your Sharetribe account by entering your Client ID and Client secret
Click ‘Continue’ to move to the ‘Trigger’ section
Choose ‘Listing updated’ as the ‘Event type’
Click ‘Continue’ to move to the ‘Test’ section
Test the trigger, and make sure it finds a recent listing creation event from your marketplace. Choose the latest one.
When you open the listing details, there is a variable called 'Listing State'. Make sure to find it, and that it says 'pendingApproval'. This signals that the listing creation wizard has been finished, and the listing is now waiting for approval.
If the 'Listing State' variable does not contain 'pendingApproval', look at any other events that the test found. If none of them are in this state, go to your marketplace and create a new test listing. Make sure that in the Console, it appears as 'Pending approval'.
After finding a listing update event in 'pendingApproval' state, click ‘Continue with the selected record’ to move to the next step
Step 2: Filter information by Listing State
Add a new step, and choose 'Filter' from underneath the 'Built-in tools' heading. You can also search for it, and it appears as 'Filter by Zapier'.
In the top field of 'Only continue if..', choose '1. Listing state' from the drop-down menu.
In the second field, choose '(Text) Contains'
In the third field, write in 'pendingApproval'
Test the step by clicking 'Continue'
Make sure the test completes successfully -- this is signalled by a green checkbox and the text 'Your Zap would have continue for this test data', and move to the next step
Step 3: Send an email about the new listing
Add a new step, and choose 'Gmail' (or any email service you want to use)
In the ‘Account’ section, Sign in with your Gmail account
Click ‘Continue’ to go to the ‘Action’ section
In the ‘To’ address, choose the email address you want to send the notification to. You can add multiple addresses, also as CC, if you want multiple addresses to receive the notifications.
(Optional) Add a "From Name" that shows up as the sender name, for example your marketplace's name
In the ‘Subject’ field, write the desired subject. You can also use details from the listing itself, if you want the message title to give more information. For example, you can write "New listing: " and then choose "[1. Listing Title]" from the drop down list that appears. This way, each message includes the new listing's title in it.
In the ‘Body’ field, you can write whatever you wish, and also include a direct link to your marketplace's listing section for convenience. For example you could write in:
“A listing called "[1. Listing title]" was just created on Biketribe. The listing needs to be approved before it is displayed on the marketplace. Go to Biketribe at https://console.sharetribe.com/a/listings to view and approve or decline the listing.
The description of the listing is as follows: [1. Listing Description]”
Note that you need to select any variables (such as [1. Listing title]) from the drop down menu when writing the message, so you can't just copy-paste them from above. When done correctly, this would translate to something like:
“A listing called "Mountain bike" was just created on Biketribe. The listing needs to be approved before it is displayed on the marketplace. Go to Biketribe at https://console.sharetribe.com/a/listings to view and approve or decline the listing.
The description of the listing is as follows: A used mountain bike in very good condition, made by Canyon. Used for two years, only during the summers. The price is non-negotiable, but I can deliver the bike for free if you live within a 30 minutes drive from where I live.”
8. Unless you have a reason not to, you can leave all other fields empty.
9. Go to the ‘Test action’ and test the zap. If everything went well, you should now get an email to your inbox that has the listing title, its description, and a direct link to the right Console page that allows you to review and approve or reject the listing.
Final thoughts
Thanks for reading this tutorial about creating a Zap for your Sharetribe marketplace to send email notifications for listings that are pending approval! Feel free to read through other parts of our Zapier guide as well: the Introduction and the article about Events and Actions. Also, there are the following Zapier/Sharetribe tutorials available:
Please get in touch with us from your Console or from the bottom right section of this page from the chat widget if you have any questions about this guide, or anything else. We'll be happy to help!