Using moodle to get paid

Using moodle to get paid

by Doug Moody -
Number of replies: 3

I have this idea where people on a payroll would get raises based on their successful completion of certain courses in moodle.

The idea won't work unless moodle has a way to sync the grades from moodle with an external payroll system automatically. 

I know I can manually export grades, but is there some way to send that data automatically to another system, such as a payroll program?

Just asking if its possible. If so, where would you point me?

Average of ratings: -
In reply to Doug Moody

Re: Using moodle to get paid

by Bret Miller -
Picture of Particularly helpful Moodlers

I'd use a SQL script on the Payroll's database server to connect to the Moodle database directly, read the grades and sync them with a table on the Payroll system.

Average of ratings: Useful (1)
In reply to Doug Moody

Re: Using moodle to get paid

by Mark Sharp -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Moodle has a basic API which can be accessed through a webservice. The functions for the grading API appear to be in /lib/classes/grading_external.php

Some webservices documentation can be found here: https://docs.moodle.org/dev/Web_services

It's not for the faint hearted, but it's the official way of communicating with Moodle from an external system.