Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2362

using function "core_course_get_courses_by_field" to sort courses after type of "enrollmentmethods" not availiable?

$
0
0
by Peter Traenkle.  

Hello everyone!

I’m trying to request a course-list by calling the wsfunction=core_course_get_courses_by_field using curl request (REST API)

in order to have courses sorted after their enrollmentmethods I use for example

-d field=enrollmentmethods -d value="manual". 

Unfortunately, within the outputted json-file I get the following error message: 


{

    "debuginfo": "Invalid field name",

    "errorcode": "invalidparameter",

    "exception": "invalid_parameter_exception",

    "message": "Invalid parameter value detected (Invalid field name)"

}


Is that field just not included in the function somehow?

Because in calling the field "shortname" with one of the course short-names I get the data for that specific course and for that case and course-id it works just fine. 


Any help or hint is highly appreciated!!


Best wishes 


Peter


Viewing all articles
Browse latest Browse all 2362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>