skip to Main Content

Sharepoint Search: Tabular(documents) View

[o365_sp_search siteID="dwsnow.sharepoint.com,87fb8dbb-4dd8-42e6-8ab9-8bf82b1319f5,4d9359e7-3ffc-4e62-8743-be09b42b9059" driveID="b!u437h9hN5kKKuYv4KxMZ9edZk038P2JOh0O-CbQrkFn-Px8InhfbR6sVUDmLdg8E" searchparam="" autoloadresult="yes" template="tabular_tpl.php" orderby="modifiedby" userbinding="no" id="dwsdivid" searchform="yes" columns="lastModifiedDateTime,size,displayName,webUrl,name,createdBy,folder,file,id"]

Shortcode perameters:

SiteID : Id of the site
DriveID : Id of the drive
Searchparam : Default search keyword
template : Template name
orderby : Sort by column name
userbinding : Yes/No
id : Uniqure identifire for result div
searchform : Yes/No
columns : Columns name to show in the result
autoloadresult : Yes/No

How to get Site and Drive ID

User Microsoft Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer#) to get the site and DriveID

Get all sites

https://graph.microsoft.com/v1.0/sites?search=*

Get DriveID based on SiteId

https://graph.microsoft.com/v1.0/sites/{site-id}/drives (Replace {site-id} with your desired site id that grabbed from previous results)




Back To Top