Moodle Plugins directory: Event Trigger | Moodle.org
Event Trigger
Event Trigger
The Event Trigger allows Moodle Events to be monitored and a workflow to be triggered when that event occurs.
One of the main use cases of this plugin is to allow Moodle events to trigger actions in external systems.
Each workflow is made up of a series of steps. Steps can be things like:
- Using event data to lookup user and course information
- Filtering data based on a set of conditions
- Performing an action like sending an email or Posting data to a HTTP endpoint or external API.
More configuration documentation can be found at the following link:
More Information on Moodle events can be found in the Moodle documentation at the following link:
Supported Moodle Versions
This plugin currently supports Moodle:
- 3.3 (PHP 7 is required)
- 3.4
- 3.5
Moodle Plugin Installation
The following sections outline how to install the Moodle plugin.
Command Line Installation
To install the plugin in Moodle via the command line: (assumes a Linux based system)
- Get the code from GitHub or the Moodle Plugin Directory.
- Copy or clone code into:
<moodledir>/admin/tool/trigger
- Run the upgrade:
sudo -u www-data php admin/cli/upgrade
Note: the user may be different to www-data on your system.
User Interface Installation
To install the plugin in Moodle via the Moodle User Interface:
- Log into your Moodle as an Administrator.
- Navigate to: Site administration > Plugins > Install Plugins
- Install plugin from Moodle Plugin directory or via zip upload.
Plugin Setup
Plugin setup and configuration documentation can be found at the following link:
Crafted by Catalyst IT
This plugin was developed by Catalyst IT:
Contributing and Support
Issues, and pull requests using github are welcome and encouraged!
https://github.com/catalyst/moodle-tool_trigger/issues
If you would like commercial support or would like to sponsor additional improvements to this plugin please contact us:
https://www.catalyst-au.net/contact-us
I'm trying to send users grade through HTTP post,
but in order to send them by HTTP post I have to add a token,
how to GET token through HTTP request and send it back as one of the parameter with the grades in POST HTTP request
Best
Hussein
Feel free to try that one out and see if it works better for your needs!
Does this plugin work with Moodle 4.3. As i can't see any event to select as the workflow trigger.
I am trying to set up a workflow wherein a student is notified when a trainer manually grades their quiz attempt. I have tried looking at the events "Quiz attempt manual grading complete" and "Quiz grade updated" however in each of these cases, the only "available fields" are "wwwroot" are "wwwroot_domain". Does this mean that I cannot extract user/course data from this event? If not, does this mean my goal is a non-starter or is there another method you would suggest? thanks in advance for any help you can offer.