Method GetAllRemoteFolders
GetAllRemoteFolders(String, String)
Get all remote folder paths for a specific document id passed as documentId
parameter.
A folder path consists of a list of parent folders including as last element the document name with its extension. For example: Guid of rootfolder\Guid of folderchild1\Guid of folderchild1child1\Guid of folderchild1child1child1\document.docx
Declaration
List<string> GetAllRemoteFolders(string connectionId, string documentId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | documentId | The document id. See also Id |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | A list of strings. Each string represents a folder path. |
Examples
POST http://YourServerName/InfoShare/Json/RemoteFolder/GetAllRemoteFolders
Example for get all remote folder paths for a specific document id passed as parameter.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"documentId": "6ba7a04c-a0df-e911-a949-00155d290a08"
}
Response:
{
"GetAllRemoteFoldersResult": ["1eb9edb4-2ce0-e911-a94a-00155d290a08\\MicrosoftTeams-image1.png"]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |