Field customfield (Text Area) on WS : core_course_update_courses

Field customfield (Text Area) on WS : core_course_update_courses

by Arief Arfiansyah -
Number of replies: 4
Dear Moodle Communities, 

I have a problem using Moodle Web Service : core_course_update_courses, i want to update custom course field data with type : Text Area custom field. I test run this WS in postman.

I already tried this parameters : 

WS Function : core_course_update_courses
courses[0][id] : (id courses)
courses[0][customfields][0][shortname] : bcld_learningobjective
courses[0][customfields][0][value] : This is learning objectives.

This type of custom fields : bcld_learningobjective , is text area. If i changed the type of custom field to short text and i called again the web services and data will updated.

Thank you Moodle Communities.


Average of ratings: -
In reply to Arief Arfiansyah

Re: Field customfield (Text Area) on WS : core_course_update_courses

by Arief Arfiansyah -
Solved, there is a bugs on moodle code and i follow this article, in case you have same problem like me.

https://tracker.moodle.org/browse/MDL-70058
Average of ratings: Useful (1)
In reply to Arief Arfiansyah

Re: Field customfield (Text Area) on WS : core_course_update_courses

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

Just to tell you thank you.
It was hard to me to find how to provide customfields to webservices.

Have a good day.

Dominique.