What are the workflow initiation properties in SharePoint?
For more info, see SharePoint 2010 workflow retirement. When you launch a workflow, SharePoint automatically sets a number of association and initiation properties that support the workflow. These are listed below.
How to set association properties in list workflow?
In the case of list workflows, there are four additional association properties that are set by default when you call PublishSubscriptionForList (WorkflowSubscription, Guid) . Properties marked with an asterisk (*) are not defined in the Workflow APIs, so to access them simply use their string values.
When did SharePoint 2010 workflows get retired?
SharePoint 2010 workflows have been retired since August 1, 2020 for new tenants and removed from existing tenants on November 1, 2020. If you’re using SharePoint 2010 workflows, we recommend migrating to Power Automate or other supported solutions.
How do I start a list of workflows?
To initiate a list workflow, use the StartWorkflowOnListItem method. To initiate a site workflow, use the StartWorkflow method. The two methods for associating workflows are found on the WorkflowSubscriptionService class, while the two methods for launching workflows are found on the WorkflowInstanceService class.
How to create an association for a list workflow?
To create an association for a list workflow, use the PublishSubscriptionForList method. To create an association for a site workflow, use the PublishSubscription method. To initiate a list workflow, use the StartWorkflowOnListItem method. To initiate a site workflow, use the StartWorkflow method.
What’s the best way to start a workflow?
To initiate a site workflow, use the StartWorkflow method. The two methods for associating workflows are found on the WorkflowSubscriptionService class, while the two methods for launching workflows are found on the WorkflowInstanceService class.
How to create an association for a workflow?
Use the following guidelines to associate and launch (initiate) your workflows using the workflow object model: To create an association for a list workflow, use the PublishSubscriptionForList method. To create an association for a site workflow, use the PublishSubscription method.