In SP 2016, I have a Nintex workflow that needs to convert a library name (input by a user) into list GUID. This GUID will be used in CAML query.
How can I retrieve the GUID of a list/library?
Many thanks.
Mayank
In SP 2016, I have a Nintex workflow that needs to convert a library name (input by a user) into list GUID. This GUID will be used in CAML query.
How can I retrieve the GUID of a list/library?
Many thanks.
Mayank
Best answer by MegaJerk
I'm not sure if this will answer your question with an acceptable work around but I assume that you want the GUID so that you can make your CAML query against the ID attribute of the list in question, like:
<List ID="{BLAH-BLAH-BLAH-BLAH}" />
However, if you use the Title attribute instead, you should be able to use the user's input string directly, like:
<Query>
<Lists>
<List Title="Your Library List Here" />
</Lists>
<ViewFields>
<FieldRef Name="ID" />
</ViewFields>
<Where>
<IsNotNull>
<FieldRef Name="Title" />
</IsNotNull>
</Where>
</Query>
Hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.