0 Launching Workflows from code 2 Adam Zeuske posted 9 Years Ago Good morning, I have a custom block akin to the Photo Request block with the filter. Except, instead of sending an email, I would like to launch a workflow instance of a custom workflow for each person that the filter resolves. I believe I have the code correct for assigning workflow attributes as parameters (person entities...) workflow.SetAttributeValue("Person", person.PrimaryAlias.Guid.ToString()); However, when I execute the following code, the workflow object gets created in the workflow table, and the initial activity object gets created as well, but it doesn't seem to process. It never makes it to the Send Email action in the first activity. I am working locally with my Rockit solution. This is the code I am using to launch the workflow, borrowed from the ActivateWorkflow Rock block.. List<string> workflowErrors; if (workflow.Process(rockContext, out workflowErrors)) { if (workflow.IsPersisted || workflowType.IsPersisted) { var workflowService = new Rock.Model.WorkflowService(rockContext); workflowService.Add(workflow); rockContext.WrapTransaction(() => { rockContext.SaveChanges(); workflow.SaveAttributeValues(rockContext); foreach (var activity in workflow.Activities) { activity.SaveAttributeValues(rockContext); } }); } } What am I missing? Thanks so much for the assistance. Adam