I have been fighting with this for several hours now and I'm sure I'm doing everything right but I can't get a Set Workflow Variable action to work.
I have a site workflow that queries a list for all items that match particular properties. The query returns their IDs in XML in a collection. I then have a loop which extracts each ID value in turn and sets it as a workflow variable. So far, all of this is working.
I then have a Set Workflow Variable action that is supposed to lookup against the list using the ID. This keeps retreiving a null value. I try it inputting the ID variable (which I know is populating because I've logged it to workflow history) and it doesn't work. I try inputting a static value as a test and it still keeps returning a null value even though I know the field is populated in this list.
Is there an issue with using a list lookup to set a variable in a site workflow? I'm sure I'm doing the exact same thing that's work a hundred times before on list workflows and the only difference I can think of is that it's a site workflow.