Poodll Trigger allows you to call a webhook when an event occurs in Moodle (eg when a new user is created). It also has helper functions that make it possible to receive and respond to events from other platforms. This makes the following automation scenarios possible:


  • A user is enroled in a course in Moodle => the user is added to a mailing list in MailChimp.
  • A user is added to a mailing list in MailChimp => the user is created as a new account and enroled in a course in Moodle
  • A user registers for an EventBrite webinar => the user is enroled in a course in Moodle. 
  • A user is deleted from Hubspot => the user is deleted in Moodle


In these examples Moodle and the other platform (ie Mailchimp . HubSpot, EventBrite ) would usually need a custom integration, so that they could understand the messages from each other. But the Zapier Middleware service has pre-built integrations with thousands of platforms. So using via Zapier and Poodll Trigger we can integrate Moodle with thousands of platforms.



Getting Started


On Moodle

You will need to install the Poodll trigger plugin. Get that from here:

 https://github.com/justinhunt/moodle-local_trigger 


And you will need a web services token for Zapier to use to connect. If you are using Poodll NET then these are already set up. Otherwise please follow the steps on this document.

https://support.poodll.com/en/support/solutions/articles/19000141629-poodll-trigger-api-key-web-token


On Zapier

You will need an account on  https://zapier.com. A free one is fine for simple use. You will use the "Poodll NET" app on Zapier. The word Moodle was not available so we could not name it "Moodle." But it works fine with Moodle + Poodll Trigger. 


Creating  a Zap

On Zapier you create a pairing between Moodle and another app, to perform a specific task, eg to register a new user in your Moodle when a Google Sheets row is added to your "new user" spreadsheet. This pairing is called a "Zap."



The app that triggers the Zap (ie fires an event) is the Trigger. The app that the event data is passed to, is the Action.


The process of creating a zap is basically authenticating with each app, and mapping data between the Trigger and the Action. eg specifying that the value of fields in Google Sheet column A and B, should be used as the new Moodle user's first name and last name.


The following events can be used when Moodle is the Trigger

  • New User Created
  • User Updated
  • Quiz Attempt Submitted
  • New Course Enrolment
  • Course Enrolment Deleted
  • User Levelled Up
  • Course Completed


The following actions can be used when Moodle is the Action

  • Find User
  • Create User
  • Delete User
  • Update User
  • Enrol User in Course
  • Unenrol User from Course
  • Add User to Group
  • Remove User from Group
  • Add User to Cohort
  • Remove User from Cohort
  • Custom Action
    - other Moodle web service functions can be registed as custom actions and made available to Zapier


This video explains in more detail and walks through the process of creating a simple Zap.