I am adding a document into a doc lib using custom code. I am doing this using the current logged in user account permission. after this i am editing the permission of the same document using system account as per req.
Now i have a SD wf that should send an email on item creation. This is not happening.
I know that it is a sharepoint bug that a SD wflow does not fire on item adding by system account. But i am editing the item using system account. But still my wf is not firing.
When i comment the code to edit the item permission, the workflow fires.
Can someone please throw light on this.