Hi,
can someone help me to resolve this issue
Entity newTaskInstance = new Entity("task");
newTaskInstance["scheduledstart"] = DateTime.Now;
newTaskInstance["scheduledend"] = DateTime.Now.AddDays(7);
if (context.OutputParameters.Contains("id"))
{
Guid regardingobjectid = new Guid(context.OutputParameters["id"].ToString());
string regardingobjectidType = "incident";
newTaskInstance["regardingobjectid"] = new EntityReference(regardingobjectidType, regardingobjectid);
}
tracingService.Trace("Recurrence Task plugin: Creating the recurrence task activity."); //service.Create(newTaskInstance);
Note: the last line of code throws an error, any idea as how to resolve this, this is CRM 2015 online solution.
Thanks
*This post is locked for comments