Hello,
After Creating Case iam trying to assign Case to Team in Plugin. But when i create case iam getting following error.
There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.
Please suggest how to fix
Entity Case = new Entity("incident");
EntityReference owner = new EntityReference();
CaseID = new Guid(entity.Attributes["incidentid"].ToString());
Entity Caserecord = getRecordData(orgService, CaseID);
OwnerID = ((EntityReference)((AliasedValue)(Caserecord.Attributes["area.new_team"])).Value).Id;
Case["ownerid"] = new EntityReference("team", OwnerID);
Case["incidentid"] = entity["incidentid"];
AssignRequest assign = new AssignRequest
{
Assignee = new EntityReference("team",
OwnerID),
Target = new EntityReference("incident",
CaseID)
};
// Execute the Request
orgService.Execute(assign);
*This post is locked for comments