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 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
I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

  • frankvdd Profile Picture
    15 on at

    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

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 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans