Hi, I am looking to pass the email entity reference as the input parameter for the custom workflow activity, but I got the below error, please advise.
[Input("Email")] [ReferenceTarget("activityid")] [RequiredArgument] public InArgument Email { get; set; } protected override void Execute(CodeActivityContext executionContext) { ITracingService tracingService = executionContext.GetExtension(); IWorkflowContext context = executionContext.GetExtension(); IOrganizationServiceFactory serviceFactory = executionContext.GetExtension(); IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId); tracingService.Trace("start getting the email entity"); Entity EmailEntity = service.Retrieve("email", Email.Get(executionContext).Id, new ColumnSet(true)); tracingService.Trace("got email entity"); tracingService.Trace("Subject",EmailEntity.GetAttributeValue("subject")); tracingService.Trace("Description",EmailEntity.GetAttributeValue("description")); }