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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamics Sharepoint In...
Power Apps
Answered

Dynamics Sharepoint Integration

(0) ShareShare
ReportReport
Posted on by 5

Hello,

 

I've built an AI model which reads data from a structured form. From this form I collect two entities which are linked, for the sake of this example I'll use account and contact. The datamodel looks as follows:

Account -> Contact -> Plan

The form I read and built a flow for is a plan. Everything works exactly how I want it to, but now I've ran into a problem.

 

I want to collect all attachments and automatically save them to the sharepoint location that's allocated to the plan. Considering the accounts, contacts and plans have a structured name, I was able to make a flow that finds the correct path in sharepoint for the folder.

 

However, the problem is that the folder isn't created until a document is uploaded through dynamics or the location is opened through dynamics.

 

My question to you guys is, am I missing a setting in Dynamics that creates the folder in sharepoint upon record creation rather than location opening/uploading?

 

Kind regards

I have the same question (0)
  • Verified answer
    SBax Profile Picture
    1,348 on at

    The behaviour you are seeing is as expected.

     

    The document location record is created when a user opens the Dataverse record

     

    @LinnZawWin wrote a great blog on how to improve the OOTB integration including creation of a SharePoint folder on creation of the Dataverse record

     

    https://linnzawwin.blogspot.com/2021/08/automatically-create-sharepoint.html

  • Fubar Profile Picture
    8,483 Super User 2026 Season 1 on at

    As per SBax - standard out of the box behavior for the native SharePoint integration create SharePoint Folder and Document Location when user first navigates to Documents for the record. 

     

    You can create the SharePoint folder and then the Dataverse Document Location for the folder before the User visits the Documents - but be careful if using Flow to do it.  Flow for Dataverse runs as a background process (and can take several minutes to trigger and complete), for example if your trigger is create of a dataverse record be aware that you may also need to manage the scenario where your Flow has triggered but not yet created the Folder (and document location), and the user has navigated to the Documents (i.e. user created the record that is the trigger and then visited the documents area where the out of the box creates the Folder before your Flow creates the Folder or doc location), depending on the timing

    • Attempting to create a Folder with the same name in SharePoint will error in Flow
    • Creating Document Location record from Flow could create 1 from Flow and 1 from the UI

     

  • SBax Profile Picture
    1,348 on at

    In order to address the concerns by @Fubar - I would suggest the following additions to Linn's approach.

     

    Add the steps to create a SharePoint folder and document location as a child flow, with an additional check to see if a document location already exists.

     

    Trigger a flow on creation of your Dataverse record to call your child flow.

     

    Within the flow that calls your AI builder step, call the child flow mentioned above (which will check if a folder exists before creating one if it doesn't)

     

    This should address the concerns mentioned 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard