Skip to content

basalt / drives-microsoft/src / microsoftRoot

Function: microsoftRoot() ​

> microsoftRoot(input): string

Defined in: drives-microsoft/src/roots.ts:84

Builds a rootId handle for drives.connect({ rootId }) or the connect route's ?rootId=.

ts
microsoftRoot({})                                   // 'me'
microsoftRoot({ siteId: 'contoso.sharepoint.com,…' }) // 'site:contoso.sharepoint.com,…'
microsoftRoot({ driveId: 'b!abc', itemId: '01XYZ' })  // 'drive:b!abc/item:01XYZ'

Parameters ​

input ​

MicrosoftRoot

Returns ​

string

Released under the MIT License.