I create item inside list A using a workflow in list B, but the workflow in list A isn't triggered on item added, although if I create item in list A directly, it's launching the workflow.
This is 2010 environment, any help?
I create item inside list A using a workflow in list B, but the workflow in list A isn't triggered on item added, although if I create item in list A directly, it's launching the workflow.
This is 2010 environment, any help?
This sounds like the old "item created within the context of the System account doesn't fire workflow" problem.
Run the following PowerShell script to see if the flag is set or not. If it's not set then this is very likely your problem.
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled
If it's not set run this:
$spWebService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$spWebService.DeclarativeWorkflowAutoStartOnEmailEnabled = $true
$spWebService.Update()
Don't be fooled by the name of the property...it effects any method of inserting an item into a list via the System account.
I think there is a stsadm alternative to this if you're not comfortable with PowerShell...let me know, I can dig it up.