To create a folder in a OneDrive that has been shared with you using Azure Logic Apps, you can use the "Create file" action from the OneDrive connector. Here's how you can do it:
Add OneDrive Connector: In your Logic App designer, add the OneDrive connector by searching for "OneDrive" in the search box and selecting the appropriate trigger or action.
Authenticate with OneDrive: If you haven't already authenticated with OneDrive, you'll need to do so by providing your credentials.
Configure Create File Action: Add the "Create file" action from the OneDrive connector. Configure the action to specify the following:
Location: Choose the OneDrive folder that has been shared with you. You should be able to select this from the dropdown list.
Folder Path: Specify the path of the folder you want to create within the shared OneDrive folder.
File Name: Provide a name for the new folder.
File Content: Leave this blank or provide any initial content for the folder if necessary.
Save and Test: Save your Logic App and test the flow to ensure that the folder is created successfully in the shared OneDrive folder.
When configuring the OneDrive connector, it should use the access token you previously obtained during authentication. Make sure that the access token has the necessary permissions to create files/folders in the shared OneDrive folder.
If you encounter any issues, double-check the permissions associated with the access token and ensure that you have the appropriate permissions to create files/folders in the shared OneDrive folder. Additionally, verify that the shared OneDrive folder is correctly selected when configuring the OneDrive connector.