I have the an issue. I have two workflows created in SPD.
(Workflow 1) Is set to fire whenever a new item is created or changed, performs approval function
(Workflow 2) Is set to fire whenever a new item is created or changed, creates a duplicate (uses create list item activity) in the same list.
When workflow 2 fires when the condition is met it creates an item but the workflow 1 nor workflow 2 never fires on the newly created item. But if the item is created manually workflow triggers fine.
Is there a way to trigger the workflow even when the item is created by SPD activity.
Note : Both are SP 2013 workflows so am not able to use even Start a list workflow activity.
Thanks for the suggestions !
I tried logging to history list and also giving a 5 minute pause, but the workflow was not triggered on the newly created item.
As suggested have used Update item activity to update few fields , but no luck in triggering the workflow even after the update.
Are there any other approaches which i can try ?
There are some good tips in this thread:Â https://social.msdn.microsoft.com/Forums/en-US/724d1347-c1ab-4dce-96b4-a97a0a320b8b/list-item-created-through-workflow-does-not-start-new-item-workflow?forum=sharepointcustomizationlegacyÂ
Try setting a “log” message as first thing in thread, and also use Update item vs Set.Â
I just reread and realized I misunderstood slightly. Â The pause isn’t going to help. Â What I said first in my reply still holds true. Â
You can’t trigger a workflow when an item is created or changed by another workflow.Try putting a 1 minute pause in the workflow that is failing so the other workflow has time to do it’s thing. Â Without more specific details, that’s the best I can think of.
Hi Prashanth,
step 1 -> first workflow should be in workflow 2013 ->set on item start and update
step 2 -> second workflow should be in workflow 2010 -> set on item update -> after that set your desire functionality in workflow ->(next line is magic line. This line will stop your workflow to run in continues loop/deadlock) add Stop workflow activity after your functionality done
Stop workflow activity only available in SPWF 2010.
Thanks, Enjoy SharePoint Hardik Akbari