function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rocky.4QRocky.4Q 

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