如何将参数传递给营销自动化工作流程?
我需要将一个名为“MeetingId”的参数传递给工作流“MeetingInvitation”。我怎样才能做到这一点?
ContactInfo contact = ContactInfoProvider.GetContacts()
.WhereEquals("ContactEmail", "chamara@e.com")
.TopN(1)
.FirstOrDefault();
// Gets the marketing automation process
WorkflowInfo process = WorkflowInfoProvider.GetWorkflowInfo("MeetingInvitation", WorkflowTypeEnum.Automation);
if ((contact != null) && (process != null))
{
// Creates an automation manager instance
AutomationManager manager = AutomationManager.GetInstance(MembershipContext.AuthenticatedUser);
// Starts the process for the contact
manager.StartProcess(contact, process.WorkflowID);
}