When I tried to import courses via CSV file after creating a custom field, it lead to an error (Coding error Only course or course category context expected). I did not find a way to export existing courses as a CSV file and see what exactly should be the field name to be given in the CSV file.