0

I am trying to make an approval workflow run off of an approver pulled from a separate list.

For instance I have a SharePoint list called "access" that has a lookup of a choice field from a separate list called department (which is just list of departments and a person who is approver).

What I am trying to accomplish is to have the workflow pull the associated approver based on which department that is selected in the dropdown from the "access" form.

What I have tried so far is setting a local variable in SP designer but I am unsure of how to work the logic to pull the associated approver when a department is selected.

I am trying to accomplish this in SharePoint designer, but if coding through Visual Studio is the better way I can give it a shot.

0

You would use a Set Workflow Variable action. The first thing you'd do is to define the variable in the action. Click the workflow variable link to create a new string variable. Then click the value link and then click the litle FX button.

Select the list to get the approver from in the data source drop down and set the field from source to be the approver you want to get. Then you need to set the lookup connection in the bottom section of the workflow dialog. Select the field that holds the department in the Field drop down. For the value, click the little FX button and select the field from the current list item that matches the department field in the other list. CLick OK twice and you should have set the variable up. You can then do what ever you need to with it.

I'd recomend logging it to the workflow history to verify it is working first, then proceed with the additional steps required.

| improve this answer | |
  • Thanks PirateEric, I assume that based on your instructions that I have the workflow variable assigning correctly. I then start approval on current item with variable: Approver, but the workflow immediately returns as rejected as soon as I run it with participants listed as empty, which would explain why they are returning as rejected. On the email "participants" I assign workflow variable and parameters: variable: Approver as string, but have also tried as email. Have you encountered this? Thanks again for your help. – S0L1D Jun 12 '13 at 20:29
1

I know this is a little dated, but I found @pirateeric answer very useful and wanted to add to @s0l1d comment regarding the empty participants list issue since I was running into the same thing.

For me the column I wanted to join the separate list on is a lookup field and my issue was that no matches were found because I wasn't choosing the right selections for the "Find the List Item" Field input. I should have selected ID since the lookup column value is ID and not the text that's shown.

Hopefully this helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.