Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans