You are viewing limited content. For full access, please sign in.

Question

Question

Problem getting a scheduled Workflow to run

asked on June 9, 2016

Hi guys,

I'm hitting the "no entry was specified" error when trying to initiate a workflow that can only run on schedule, not a condition.  Each employee has a folder, each employee folder has a folder template containing key employee details that include fields for expiry dates for certificates and licenses.  We want to run a daily workflow to check for expiry dates within the employee folder template fields that are 3 months out, then 1 month out from the current date, and notify the employee and manager.  

The workflow works fine if I run it manually (albeit I can only run it on a single employee folder for testing as the parent folder "Staff" doesn't have the template assigned being that it's an employee specific template), but I cannot get the workflow to run on schedule as it starts with a "Retrieve Fields" activity and I can't work out how to specify the starting entry (e.g. the "Staff" folder).

I'm probably missing something simple here, or am taking the wrong approach for the workflow, so would appreciate any suggestions on how to sort this.

Thanks,

Mike

0 0

Answer

SELECTED ANSWER
replied on June 9, 2016

The rule for a Schedule does not contain any conditions other than time, so the workflow will not know where to start.

Perhaps you should add Search as your first workflow activity and search for entries in the Staff folders with the right conditions.

2 0
replied on June 9, 2016

Thanks Peter, I knew it would be something simple missing but I've only ever used conditions for starting rules in the past so wasn't seeing the answer.

0 0
replied on June 10, 2016

Along with your search you'll also have to encase all of the rest of your workflow in a "for each entry" condition. Point your "for each entry" towards the search results, then each sub process that references the starting entry should be set to: Other Entry

  Activity: For Each Entry (whatever you named it)

  Entry: Current Entry

 

 

If you've already created a large workflow and you have a bazillion places to change the activity reference, you can add "Change Starting Entry" before the first activity inside the "For Each Entry" loop. This can set your starting entry every loop so you don't have to change everything below it. 

2 0
replied on June 12, 2016

I ran right into that one Chris, thanks very much for the advice.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.