Retrieving SharePoint Items

Fetching a File

Syntax

get sharepoint's file whose url is "<file-url>"

Example

get sharepoint's file whose url is "https://company.sharepoint.com/sites/ProjectX/Documents/file.docx"

Fetching Files from a Folder

Syntax

get a folder at <folder-url>
get the folder's files

find the files from sharepoint whose folder is <folder-url>

Example

get a folder at "https://company.sharepoint.com/sites/ProjectX/Documents"
get the folder's files

find the files from sharepoint whose folder is "https://kognitostest.sharepoint.com/sites/ProjectX/Shared%20Documents/"

Fetching Specific Files from a Folder

Syntax

get a folder at <folder-url>
get the folder's files whose url is "<folder-url>/file-name"

Example

get a folder at "https://company.sharepoint.com/sites/ProjectX/Documents"
get the folder's files whose url is "https://company.sharepoint.com/sites/ProjectX/Documents/file.docx"

Last updated

Was this helpful?