Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Search for existing Sharepoint folder before upload

(0) ShareShare
ReportReport
Posted on by 15

Hi there, 
Since we're on the way to make our app AppSource ready, we'd like to convert old "File Mgt' functions to a cloudready base. 

And therefore I'm creating functions to upload files and create folders on a dynamic basis. 


We've desided to deliver functions to upload to Sharepoint and Onedrive with the base app. And so I communicate with the MS Graph API to execute my functions. 

This works all well when creacting a new folder and upload the file (PDF result of reports). 

But..... what if the folder already exists? then I've to know the ID's of this particular folder so I can pass this to my upload. 

And thats where it stops for me now. I'm looking for a API call to quick find a result of driveItems based on a filter (the folder I otherwise should create). 


Is there anyone with experience with integrating Sharepoint file management with BC?

Base app version is 20.2. 

query URL I use for now 'graph.microsoft.com/.../query'
Looking forward to any suggestions! 
Regards from Holland, 

Frank
  • frankvdd Profile Picture
    frankvdd 15 on at
    RE: Search for existing Sharepoint folder before upload

    Hi Leah Ju,

    Thanks for your response. Because of the fact MS Graph and Sharepoint are not Business Central specific and my problem is more in general (I'd like a quiry to find a SP folder without any relation to BC), I thought the general forum is the place to be.

    I'll also post it at the BC Forum. Thanks!

    Regards, Frank

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Search for existing Sharepoint folder before upload

    Hi frankvdd,

    Based on your description, you are using Business central app, you need post the thread to the following forum so that more people can help you:

    (+) Dynamics 365 Business Central Forum - Support & Help

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans