Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: GetListItems Syntax with Variable Subsite/Subfolder Location

$
0
0
The 'FileRef' attribute as a lookup includes the record ID and everything in the filepath/name after the domain, delimited by ";#"
If I had a file with an ID of 25, located at
"https://www.mydomain.com/sites/sitename/Library Name/File Name.docx",
the "FileRef" field for that file is...
25;#sites/sitename/Library Name/File Name.docx
Using my example, your query will work if your argument "actualFileName" is "sites/sitename/Library Name/File Name.docx." I suspect you may not be forming your variable value correctly.

Geoff

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>