{
// Create a task activity to follow up with the account customer in 7 days.
Entity followup = new Entity("task");
followup["description"] =
"Follow up with the customer. Check if there are any new issues that need resolution.";
followup["scheduledstart"] = DateTime.Now.AddDays(7);
followup["scheduledend"] = DateTime.Now.AddDays(7);
followup["category"] = context.PrimaryEntityName;
if (context.OutputParameters.Contains("id"))
{
Guid regardingobjectid = new Guid(context.OutputParameters["id"].ToString());
string regardingobjectidType = "account";
new EntityReference(regardingobjectidType, regardingobjectid);
}
tracingService.Trace("FollowupPlugin: Creating the task activity.");
service.Create(followup);
}
{
throw new InvalidPluginExecutionException("An error occurred in FollowUpPlugin.", ex);
}
{
tracingService.Trace("FollowUpPlugin: {0}", ex.ToString());
throw;
}
}
throw new NotImplementedException();
}
}
}
followup["description"] =
"Follow up with the customer. Check if there are any new issues that need resolution.";
followup["scheduledstart"] = DateTime.Now.AddDays(7);
followup["scheduledend"] = DateTime.Now.AddDays(7);
followup["category"] = context.PrimaryEntityName;
followup["description"] =
"Follow up with the customer. Call them back";
followup["scheduledstart"] = DateTime.Now.AddDays(7);
followup["scheduledend"] = DateTime.Now.AddDays(7);
followup["category"] = context.PrimaryEntityName;
followup["description"] =
"Create portfolio for customer";
followup["scheduledstart"] = DateTime.Now.AddDays(5);
followup["scheduledend"] = DateTime.Now.AddDays(5);
followup["category"] = context.PrimaryEntityName;
followup["description"] =
"Create sales deck.";
followup["scheduledstart"] = DateTime.Now.AddDays(7);
followup["scheduledend"] = DateTime.Now.AddDays(7);
followup["category"] = context.PrimaryEntityName;

Report
All responses (
Answers (