PdcSharepoint.DirectoryPath: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == DirectoryPath(intDirectoryType As Integer, intPID as Integer, out strCloudPath as String, out strClientPath as String) == Description == * The parameter intDirectoryType indicates a number which provides context regarding the entity. This number corresponds to an entity type, for example Companies or Calculations. See DirectoryTypes for more information. * The parameter intPID is the unique _pid value that each record in the database has. This pid..."
 
No edit summary
 
Line 18: Line 18:
Dim strClientPath as String
Dim strClientPath as String


sp.DirectoryPath(12, 633, strCloudPath, strClientPath)
sp.DirectoryPath(2, 68, strCloudPath, strClientPath)
MsgBox(strCloudPath) '\\tsclient\C\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]
MsgBox(strCloudPath) '\\tsclient\C\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]
MsgBox(strClientPath) 'C:\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]
MsgBox(strClientPath) 'C:\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]

Latest revision as of 12:22, 22 July 2024

Declaration

DirectoryPath(intDirectoryType As Integer, intPID as Integer, out strCloudPath as String, out strClientPath as String)

Description

  • The parameter intDirectoryType indicates a number which provides context regarding the entity. This number corresponds to an entity type, for example Companies or Calculations. See DirectoryTypes for more information.
  • The parameter intPID is the unique _pid value that each record in the database has. This pid is used to determine which folder needs to be searched for within Sharepoint.
  • The parameter strCloudPath is a String that needs to be defined before calling the DirectoryPath function and will be filled in by the DirectoryPath function.
  • The parameter strClientPath is a String that needs to be defined before calling the DirectoryPath function and will be filled in by the DirectoryPath function.

If successful, the strCloudPath will contain a path to a directory based on the cloud perspective. The strClientPath will contain a path to a directory based on the clients perspective.
If unsuccessful, the result is nothing

Code example

Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("sharepointHoofdMap")
Dim strCloudPath as String
Dim strClientPath as String

sp.DirectoryPath(2, 68, strCloudPath, strClientPath)
MsgBox(strCloudPath) '\\tsclient\C\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]
MsgBox(strClientPath) 'C:\Users\Anton\sharepoint\bemetdocrepo\Companies\00211 - AHREND [68]

Availability

Available since 2024R4