Creating a Folder in a One Drive path shared with me

Nicolas Alvaredo 0 Reputation points
2024-05-03T12:46:26.3466667+00:00

Hi team, How can I create a folder with a logic app into a Folder in a One Drive that was shared with me?
I am actually using the access token I have previously with no luck

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,887 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
847 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Shawn Collins 595 Reputation points
    2024-05-03T20:24:37.6933333+00:00

    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.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more