Poodll Trigger exposes a subset of Moodle APIs for consumption via Zapier. Full documentation for each of the Moodle web services is available from the Site Administration -> Server -> Web services ->API Documentation page of your Moodle site.
Full documentation for each of the Moodle events is available from the Site administration > Reports > Event list page of your Moodle site
Zapier Actions (Moodle Web Services)
Zapier Action | Moodle Web Service | Description |
Find User | core_user_get_users_by_field | Specify the user's email address OR Moodle user ID, and their user record will be returned. Returns object: Fields include: id, username, firstname, lastname, fullname, email, suspended |
Create User | core_user_create_users | Specify first name, last name, email address, username and an optional password to create a user. If no password is specified a random password will be generated and sent by email to the user. If a user with that email already exists, their details will be updated. Returns integer: ID of the newly created user. |
Delete User | core_user_delete_users | Specify the user's email address OR Moodle user ID, and they will be deleted. Returns boolean: True for success |
Update User | core_user_update_users | Specify either the user's email OR Moodle user ID, and any of first name, last name, email address, or suspended flag. Returns boolean: True for success |
Enrol User in Course | enrol_manual_enrol_users | Specify either the user's email OR Moodle user ID, and the course id, a group id and a suspended flag. If the user is already enrolled nothing will happen, but the suspended flag will updated if it differs. Returns boolean: True for success |
Unenrol User from Course | enrol_manual_unenrol_users | Specify either the user's email OR Moodle user ID, and the course id. Returns boolean: True for success |
Add User to Group | core_group_add_group_members | Specify either the user's email OR Moodle user ID, and the course id, a group id. Returns boolean: True for success |
Remove User from Group | core_group_delete_group_members | Specify either the user's email OR Moodle user ID, and the course id, a group id. Returns boolean: True for success |
Add User to Cohort | local_trigger_add_cohort_members | Specify either the user's email OR Moodle user ID, and the cohort idnumber. Returns boolean: True for success |
Remove User from Cohort | local_trigger_remove_cohort_members | Specify either the user's email OR Moodle user ID, and the cohort idnumber. Returns boolean: True for success |
Custom Action | A special action type that pre-registers a Moodle web service function as a custom action, and then allows you to call it as part of local_trigger. |
Zapier Triggers ( Moodle Events)
Zapier Trigger | Moodle Event | Description |
New User Created | \core\event\user_created | Fires when a user is created in Moodle. Returns: User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) |
User Updated | \core\event\user_updated | Fires when a user is updated in Moodle User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) |
Quiz Attempt Submitted | \mod_quiz\event\attempt_submitted | Fires when a user submits a quiz attempt. Returns: Quiz ID: (other__quizid) User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) Course ID (courseid) Course full name (course__fullname) Course short name (course__shortname) Course ID number (course__idnumber) |
New Course Enrolment | \core\event\user_enrolment_created | Fires when a user is enrolled in a course. Returns: User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) Course ID (course__id) Course full name (course__fullname) Course short name (course__shortname) Course ID number (course__idnumber) |
Course Enrolment Deleted | \core\event\user_enrolment_deleted | Fires when a user is unenrolled from a course. Returns: User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) Course ID (courseid) Course full name (course__fullname) Course short name (course__shortname) Course ID number (course__idnumber) |
User Levelled Up | \block_xp\event\user_leveledup | Fires when a user attains a new level in the LevelUp XP plugin. New level: (other__level) User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) Course ID (courseid) Course full name (course__fullname) Course short name (course__shortname) Course ID number (course__idnumber) |
Course Completed | \core\event\course_completed | Fires when a course is completed by a user. Course completion must be enabled and configured. Returns: User ID (userid) User username (user__username) User first name (user__firstname) User last name (user__lastname) User email (user__email) User ID number (user__idnumber) Course ID (courseid) Course full name (course__fullname) Course short name (course__shortname) Course ID number (course__idnumber) |