SCMSM 2012 custom control
I want to get the EMO of the current instance.
I tried :
Guid guidObject = new Guid(instance["$Id$"].ToString());
EnterpriseManagementObjectGenericCriteria genericCr = new EnterpriseManagementObjectGenericCriteria("Id = '" + StrID +"'");
EnterpriseManagementObject emo = mg.EntityObjects.GetObject<EnterpriseManagementObject>(guidObject, ObjectQueryOptions.Default);
But I get the error that Oject with id .... is not found .
Is the object not created yet as an EMO ?
I do this at OnPreviewSubmit .
I want to Add the reviewers at creation time