+ Start a Discussion

CollaborationGroup Unknown Error

My code:


CollaborationGroup chatterGroup = new CollaborationGroup();

chatterGroup.Name = appSettings.Developers_Chatter_Group_Name__c;


insert chatterGroup;


Causes this error:


DML_BEGIN [59]|Op:Insert|Type:CollaborationGroup|Rows:1


System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, com.ninja.common.exception.NinjaValidationException: workspaceName - This field is required:


Any ideas?

workspaceName doesn't seem to be a field in CollaborationGroup.

shikher goelshikher goel

You must the collabration group name. We can not insert more than one collabration group having same name.


Let me know if it is solved