Codeunit WSB_DCASharePointAPI
Exposes procedure to make API requests to SharePoint (the Graph API).
Properties
Methods
wgFncDeleteFile
Deletes a file from SharePoint.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Text |
pSiteID |
Site ID |
Text |
pDriveID |
Drive ID |
Text |
pItemPath |
Item (File) Path |
Returns
Type |
Description |
Boolean |
true iff successful |
wgFncDownloadFile
Downloads a file from SharePoint.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Text |
pSiteID |
Site ID |
Text |
pDriveID |
Drive ID |
Text |
pItemPath |
Item (File) Path |
Codeunit "Temp Blob" |
vCduTempBlob |
Temp Blob codeunit". |
Returns
Type |
Description |
Boolean |
true iff successful |
wgFncFetchDrives
Retrieves the available drives for a site.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Text |
pSiteID |
Site ID |
Record "WSB_DCASharePointDrive" |
vRecWSB_DCASharePointDrive |
Record set storing the info for the resulting drives. |
Returns
Type |
Description |
Boolean |
true iff successful. |
wgFncFetchSites
Retrieves the available sites.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Record "WSB_DCASharePointSite" |
vRecWSB_DCASharePointSite |
Record set holding the info for the resulting sites. |
Returns
Type |
Description |
Boolean |
true iff successful |
wgFncRefreshDrives
Triggers a refresh of the available drives for a site.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Text |
pSiteID |
The Site ID. |
Returns
Type |
Description |
Boolean |
true iff successful |
wgFncRefreshSites
Triggers a refresh of the available sites.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Returns
Type |
Description |
Boolean |
true iff successful |
wgFncUploadFile
Uploads a file to SharePoint.
Parameters
Type |
Name |
Description |
Interface "WSB_IRESTClientSetup" |
pWSB_IRESTClientSetup |
The REST Client Setup. |
Text |
pSiteID |
Site ID |
Text |
pDriveID |
Drive ID |
Text |
pRemoteFilePath |
Remote File Path for the new item. |
Codeunit "Temp Blob" |
pCduTempBlob |
Temp Blob holding the file. |
Returns
Type |
Description |
Boolean |
true iff successful. |