I am working on SharePoint 2010 sequential workflow. I have added association form to workflow. I want to store Workflow Instance id to one list. while associating workflow. My Question is – 1) Is it possible to get workflow instance id while association? 2) How to get workflow Instance id in Association form?
I have tried for associationparams.instanceId but its Guid is always 000…000
I have solve the issue. At workflow Activated, we can get the workflow instance id. So I am adding workflow instance id when workflow is getting activated.
Ohh, Actually I want to perform some operations after workflow association. Is there any way so that I can add workflow instance id to list.
This isn’t possible. The instance is not created until you submit the association form. So, no instance ID is assigned during the lifetime of the form. This is the same behavior as creating a new list item. The ID for it is 0 until the form has been submitted.