How to retrieve "department idnumber" and "position idnumber" programmatically

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Håkon Strøm នៅ
ចំនួនតប៖ 5

Hello, 

I'm currently working on an integration where we want to let leaders of departments assign and delete jobs of people they manage. However, I hit a road block as the API "tool_organisation_create_job" requires "department id" and "position id". Does anyone know of an API that lets you fetch these IDs? 

Another challenge we are facing is that we haven't used the field "ID number" when creating our org-structure. Does anyone know if this is something that has to be set automatically, or do they receive a default value when empty?

~Håkon

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Håkon Strøm

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Howard Miller នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers
Is this Moodle Workplace?

(Standard) Moodle doesn't have those things.
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Howard Miller

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Håkon Strøm នៅ
Hello,
Yes, sorry, I forgot to add that we are using Moodle Workplace.
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Håkon Strøm

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Howard Miller នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers
I'm not sure how likely you are to encounter Workplace devs here. However, you never know...
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Howard Miller

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Håkon Strøm នៅ
Oh my, thanks for letting me know. Any good ideas on where I could ask to better my chances?
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Håkon Strøm

How to retrieve "department idnumber" and "position idnumber" programmatically

ដោយ Howard Miller នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers
Your Moodle Partner who is providing you with (and support for...) Workplace?
មធ្យមភាគនៃរង្វាយតម្លៃ: -