Group Category Valence

24 views
Skip to first unread message

kazmi

unread,
Oct 22, 2014, 8:37:39 PM10/22/14
to valenc...@googlegroups.com
Is there a way to create Group of #  - Category only using valence?? At the moment, when I create the group category, It is automatically creating groups too. Secondly, Is there a call to retrieve Groups with no enrollment in them??

Desire2Learn Staff: Sarah-Beth

unread,
Oct 23, 2014, 2:36:22 PM10/23/14
to valenc...@googlegroups.com
Hi kazmi

Have you checked out the improvements to the 1.3 version of the Create Group Category API? Based on the documentation, it looks like you can set the EnrollmentQuantity and NumberofGroups to null. Have you given that a try to see if it achieves what you're looking for?

~Sarah-Beth

kazmi

unread,
Oct 31, 2014, 3:38:25 PM10/31/14
to valenc...@googlegroups.com
Hi Sarah,

I Tried that... This is the object I am sending in my POST.

{"Name":"00000000","Description":{"Content":"","Type":"Text|HTML"},"EnrollmentStyle":3,"EnrollmentQuantity":1,"AutoEnroll":false,"RandomizeEnrollments":false,"NumberOfGroups":null,"MaxUsersPerGroup":null}

And this is the response Data that still creates groups under the category.

{"GroupCategoryId":1331166,"EnrollmentStyle":"PeoplePerGroupSelfEnrollment","EnrollmentQuantity":1,"AutoEnroll":false,"RandomizeEnrollments":false,"Name":"00000000","Description":{"Text":"","Html":""},"Groups":[2630613,2630614,2630615,2630616],"MaxUsersPerGroup":1}

I even tried to send in 0 as NumberOfGroups but it still creates the Groups. 

Desire2Learn Staff: Sarah-Beth

unread,
Nov 4, 2014, 8:50:57 AM11/4/14
to valenc...@googlegroups.com
Hi Kazmi

I'm speaking to the Devs who created this feature. I should have an update for you shortly.

~S-BB

Desire2Learn Staff: Sarah-Beth

unread,
Nov 4, 2014, 10:02:22 AM11/4/14
to valenc...@googlegroups.com
Speaking to folks here, it isn't actually possible to create a category with no groups in it. The groups will be created automatically based on the values  you set for EnrollmentQuantity, NumberOfGroups and MaxUsersPerGroup. While each of those values is nullable, you can't set all three to null. You must set one of those values to a real number to guide the creation of groups. 

Back to your original post, you asked if it's possible to retrieve groups with no enrollment in them. Are you looking for a call that allows you to select all empty groups, for example as a way to double-check if some of the groups are going unused? We don't seem to be able to filter that way, but it sounds like an interesting use case that would be worth mentioning in the Product Ideas Exchange.
Reply all
Reply to author
Forward
0 new messages