GetCourseOfferingByCode equivalent in Valence

28 views
Skip to first unread message

Matthew Drover

unread,
Sep 17, 2014, 7:49:32 AM9/17/14
to valenc...@googlegroups.com
It seems there is no way in Valence to search for an offering by it's code. In the SOAP api the call was GetCourseOfferingByCode but I'm not seeing any way to do this in Valence. Anyone have any ideas?

-Matt

Desire2Learn Staff: Sarah-Beth

unread,
Sep 17, 2014, 4:58:07 PM9/17/14
to valenc...@googlegroups.com
With version 1.4 of the OrgUnit APIs which were released with v10.3 of the Learning Environment, you now have the ability to filter results by orgUnitCode, orgUnitType or orgUnitName. I just did the following call:

GET /d2l/api/lp/1.4/orgstructure/?orgUnitCode=Astro101

Result:

{"PagingInfo":{"Bookmark":"6611","HasMoreItems":false},"Items":[{"Identifier":"6611","Path":"/content/enforced/6611-Astro101/","Name":"Introduction to Astronomy","Code":"Astro101","Type":{"Id":2,"Code":"Course Template","Name":"Course Template"}}]}

If you're not yet at 10.3, searching for courses can be tricky. We released a Course Search Cookbook recipe and sample on the blog to assist on this front.

Matthew Drover

unread,
Sep 18, 2014, 6:43:52 AM9/18/14
to valenc...@googlegroups.com
Worked like a charm. Thank you.

Desire2Learn Staff: Sarah-Beth

unread,
Sep 18, 2014, 9:56:01 AM9/18/14
to valenc...@googlegroups.com
Perfect! Glad to know it worked for you. 
~S-BB
Reply all
Reply to author
Forward
0 new messages