Azure / Azure/LogicAppsUX

Issue in SharePoint List Folder Connector When Manually Typing the File Identifier

Open
#6,750 0 comments 0 reactions 0 assignees View on GitHub
Connections
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Describe the Bug with repro steps

Navigate to the List folder action of the SharePoint connector.

Manually enter the File Identifier.

![Image]()

Save and run the workflow. However, it fails with a 404 Not Found error.

![Image]()

If the **Open Folder** button is used to select the File Identifier instead of manually typing it, the workflow runs successfully.

![Image]()

Here’s the difference in the code when **manually** entering the file path versus using the **Open Folder** button:

Manually typed in file path

`"path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://microsoftapc.sharepoint.com/teams/EnochSite'))}/folders/@{encodeURIComponent('/Shared Documents/FolderB/FolderC/FolderD')}" },`

File Path from Open Folder Button

`"path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://microsoftapc.sharepoint.com/teams/EnochSite'))}/folders/@{encodeURIComponent('%252fShared%2bDocuments%252fFolderB%252fFolderC%252fFolderD')}"`

Manually adding **encodeURIComponent** in the code view is a workaround. However, customers need a solution that allows them to use the designer directly, without modifying the code.

This issue should be fixed since some customers may not have the necessary permissions to locate the folder path from the root directory using the Open Folder button.

### What type of Logic App Is this happening in?

Consumption (Portal)

### Which operating system are you using?

Windows

### Did you refer to the TSG before filing this issue? [https://aka.ms/lauxtsg]()

Yes

### Workflow JSON

```json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"When_a_HTTP_request_is_received": {
"type": "Request",
"kind": "Http"
}
},
"actions": {
"Initialize_variable": {
"runAfter": {
"List_folder": [
"Succeeded"
]
},
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "Test",
"type": "string"
}
]
}
},
"List_folder": {
"runAfter": {},
"metadata": {
"%252fShared%2bDocuments%252fFolderB%252fFolderC%252fFolderD": "/Shared Documents/FolderB/FolderC/FolderD",
"%252fShared%2bDocuments": "/Shared Documents",
"%252fShared%2bDocuments%252fFolderB%252fFolderC": "/Shared Documents/FolderB/FolderC"
},
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['sharepointonline-1']['connectionId']"
}
},
"method": "get",
"path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://microsoftapc.sharepoint.com/teams/EnochSite'))}/folders/@{encodeURIComponent('/Shared Documents/FolderB/FolderC/FolderD')}"
}
}
},
"outputs": {},
"parameters": {
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"type": "Object",
"value": {
"sharepointonline-1": {
"id": "/subscriptions/65e15056-c006-458b-adbb-9155a72702d3/providers/Microsoft.Web/locations/northcentralus/managedApis/sharepointonline",
"connectionId": "/subscriptions/65e15056-c006-458b-adbb-9155a72702d3/resourceGroups/ServiceBusTest/providers/Microsoft.Web/connections/sharepointonline-1",
"connectionName": "sharepointonline-1"
}
}
}
}
}
```

### Screenshots or Videos

*No response*

### Browser

Edge

### Additional context

*No response*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.