I'm trying to load multiple sharepoint lists with one block of code. My first attempt was to handle this process similar to loading multiple documents using wildcard characters. But the problem is that those only work for document names or extensions and not for directions.
So my first question is if I used the wildcard characters wrong or is it even impossible to use this approach?
Apart from this I tried to use a For each next loop to improve my load script. But I face issues with the defined list.
For each Item in list
Everything works fine if I write the Items instead of the list directly in this block of code. BUT that is very cumbersome, because the list items are links and have a very long character length. So I tried to use a seperate list where I can define my links and just need to use the list in the loop. This worked like that:
SET vList = 'link1', 'link2';
For each vItem in $(vList)
BUT this only worked when I wrote all the links in a single row! When I used a line break after each "," to make the code more attractive the list stopped working .... So what did I do wrong and/or does anyone see a much easier solution for my kind of problem?
Thanks for any reply!