macro for onedrive

Alex Miles 1 Reputation point
2022-03-21T11:29:40.517+00:00

Hello, weird question.

is it possible to make a macro or code something that works with OneDrive online so that whenever I create a new folder it copies other folders into it?

E.g create new folder, folders a,b & c get copied in automatically

And how would I go about making this?

Apologies I've tried explaining to the best of my ability.

Thanks in advance.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,292 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,656 Reputation points
    2022-03-22T04:45:39.643+00:00

    Hi @Alex Miles

    Welcome to Q&A forum ~

    But please note, tag "office-onedrive-client-itpro" focuses more on general issue of OneDive, such as deployment, installation, and troubleshooting like file synchronization.

    As your issue need the code help, I would suggest you post a new thread on following forums.
    OneDrive Developer
    OneDrive developer community

    Besides, I find a similart thread "Copy Content Of a Folder to Another SP Online Folder", PnP PowerShell command "Copy-PnPFile" seems to be possible to copy files. But at current time, I do not find the command to capture the action of creating a new folder to trigger the copy command.

    Hope the infromation could be helpful to you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.