AnsweredAssumed Answered

Query list using a variable

Question asked by padwhite on Jul 25, 2014
Latest reply on Jan 28, 2016 by tolbrich

I have the need to query a library, but depending on which group the user belongs, it will be a different list.  I did something similar before and used a switch, but that was only with a few different libraries.  The current one uses many libraries, and makes the switch very unwieldy. 

 

Ideally, I would use the Query List action and use a variable to tell it which library to look in.  Unfortunately, that action does not allow a variable.

 

I have tried the CAML editor instead of the query builder, but I have not been able to get that to work.  Does anyone know what would need to be entered in the editor to allow a variable to work?  I would have to get the ID somehow, but I'm not sure how to do that either.

Outcomes