PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > SHRDPTPUT command
SHRDPTPUT command

This command is available for Office 365 users. OAuth authentication (OAuth2 protocol) is used to access SharePoint files.

In order to authenticate, you must provide the following elements to the command :

- Microsoft Entra ID tenant ID: Tenant parameter

- Caller’s application client ID: ClientIdVal parameter

- Application’s secret value: ClientSecretVal parameter

Of course, this information will not appear in the Launcher trace.

For more information, go see this chapter of our documentation

Moreover, here is a link to the Microsoft documentation. 

 

 

Syntax

 

CHGVAR

 

VAR(&CMD) VALUE('SHRDPTPUT')

CHGVAR

VAR(&PARM1) VALUE('
SharePointHost="SharePoint host"

;SharePointSiteName="name of the SharePoint site"
;ClientIdVal="client ID"

;ClientSecretVal="client secret"

;Tenant="tenant"

;FilePath="complete path of the file to put on SharePoint"
')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

  Parameters

 

Paramètres

 

Parm1 ou Parm2

 

SharePointHost : SharePoint host.

 

SharePointSiteName : Name of the SharePoint site.

ClientIdVal : Client ID. Useful for authentication.

 

ClientSecretVal : Client Secret. Useful for authentication.

 

Tenant : Tenant. Useful for authentication.

 

FilePath : Full path of the file to be uploaded to SharePoint.

 

 

Example

 

L’exemple suivant illustre le dépôt d’un fichier sur le site "SalesandMarketing" de du serveur SharePoint "aura.sharepoint.com":
https://aura.sharepoint.com/:b:/s/SalesandMarketing

 

LNCCMD     CMD(SHRDPTPUT) +                             

             PARM1('sharepointHost="aura.sharepoint.com+

             ";sharepointSiteName="SalesandMarketing";+

             clientIdVal="45ai88a7-8f43-1289-b698-45ca+

             23c87a84";clientSecretVal="Odf9Q~ecCrfgGAPv+

             N8df89cxb7dx52df7CVBLbaI";Tenant="a2f8vf56-+

             2178-4da9-b478-2fe147a5";FilePath="C:\A\PDF+

             _F99.PDF"')