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
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.