web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Need to create OneDrive folders for all existing records in Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hi

I have OneDrive and Dynamics 365 integrated using SharePoint. I have over 1000+ records in Opportunity but the folder for recrods in OneDrive does not exist until I upload a document from app. I have documents for all opportunities and I want to copy those documents in OneDrive.

I can go to opportunity and upload a document and then the OneDrive folder is created and I can copy rest of files in the folder but its too lengthy process. Is there some more easily doable way?

Thanks for any help in advance :-)

*This post is locked for comments

I have the same question (0)
  • Syed Ibrahim Profile Picture
    6,257 on at

    Yes we can write some batch job by using the sdk available. Pls follow the below link for more info

    github.com/.../onedrive-sdk-csharp

    https://stackoverflow.com/questions/24812357/c-sharp-login-and-upload-to-onedrive-without-user-interaction

    Hope this helps. Pls mark it as Answered/Verified to close the thread if suggestion resolved your query

  • Community Member Profile Picture
    on at

    No this is not what I want. In short I want a One Drive folders to be created automatically from Dynamics CRM entities.

  • Community Member Profile Picture
    on at

    Hi naveedkamran ,

    you can achieve your goal making crm do the task, however you need to pass through sdk.

    You need to (by sdk):

    1) retrieve all attachments related to opportunity (object type code 3)

    2) loop all attachments

    3) create an identical attachment

    4) delete current attachment

    Doing so, crm will create the new folder on SharePoint.

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans