cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brendan1
Helper II
Helper II

Dataverse and SharePoint Document Management

Hi Community!

 

I've built a few solutions now using a SharePoint list to store photos as part of functionality in a canvas app. While this works well enough, I se Dataverse for the majority of my solution building.  I am interested to explore using SharePoint document management on dataverse tables to achieve the storage and retrieval of photos in a canvas app. I am hoping to do this to eliminate using a Flow to get the images into SharePoint.  I'm struggling to find good documentation on how one would achieve this though.

 

The use case is simple enough.  One dataverse table record per image, so I can have the image in one field and relevant metadata in other fields.

 

Has anyone done this before?  What has your experience been.  Would you do it again?

22 REPLIES 22
EricRegnier
Most Valuable Professional
Most Valuable Professional

Hi @apper, no they are not passed to Dataverse. RBAC/privileges in SharePoint would need to be handled seperately. So even if a user has access to the record and SharePoint link in Dataverse, once redirected to SharePoint he/she will not have access if their access wasn't managed in SP. Cheers

johnpgootee
Frequent Visitor

I am using the built in document management with SharePoint for a custom entity in a model driven app.  I am trying to do something simple:   For a document that is loaded for one of the custom entity records, I want to get reference to it from Power Automate and send it out for e-signature, all done inside the model driven app.

 

The problem I have is there appears to be no way to get a direct reference to the document while being inside the model driven app.   I am triggering my Power Automate with the "When a record is selected" legacy dataverse connector on the Documents table.  This fires ok for the specific file, but the trigger doesn't have any useful data in it for figuring out which document is selected, so I can't process it.   

 

Looking directly at the Documents table, there is nothing in it.  It seems like this table is just not getting populated and therefore can't return any data to the Power Automate.

 

I can do all this if I go directly to SharePoint and put the Power Automate there...but jumping the user from the model app over to SharePoint to do this is a terrible user experience.

 

Anyone deal with this already?

EricRegnier
Most Valuable Professional
Most Valuable Professional

HI @johnpgootee, I recall doing this a wee back so should be possible. Suggest to open a new thread on this to get better support. I'll do a little resesarch in the meantime. Cheers 

Smith001
Frequent Visitor

Hello, I am dealing with a similar issue using a canvas PowerApps. I have all of my data sitting inside of Dataverse but wanted to use the SharePoint Document library to house my attachments/files. I got my attachments box to upload to my SharePoint document library using a flow on the "OnAddFile" property for my attachment control, but I am wondering if anybody knows away from me to be able to grab simple metadata like a document number from my Dataverse table and add it to the document library so that the files know which documents go with each record.

Hi @Smith001,

To do this, I setup an additional column in my SharePoint library called "RecordGUID", and every time I put a file into the library, I write the GUID of the dataverse record into the RecordGUID column.

 

As long as you Index the column in SharePoint, this works fine for speed/end user.

Smith001
Frequent Visitor

Are you getting the and transferring the GUID using the same flow that you are using to put the files in the SharePoint Library?

Brendan1
Helper II
Helper II

Yes, I pass the GUID into the flow.  My flow has a few other things going on, but here is a screenshot:

Photo Upload Flow.png

Hi @EricRegnier , integration of Sharepoint into Dataverse works well and is easy to install. But my problem is how I can move files to Sharepoint by a flow.

My usecase: Management of invoices. An invoice is scanned and automatically stored in Sharepoint Doc Library. There a trigger starts analyzing the invoice by AI so that invoice number, date etc. is written in Sharepoint columns. Then a canvas app is used to fill in the remaining data for the invoice (lookup to a project, to a contract etc.). Finally I want to move the invoice record to Dataverse and store the PDF containing the invoice into sharepoint (the invoice table has the integration with sharepoint). The reason for this is of course to reduce license costs. I was wondering whether using a sharepoint list that is integrated into dataverse as a virtual table is better / easy to handle. There I would use a file column containing my PDF invoice. The best solution for me would be: Access the PDF inside a model-driven app so that I can show the PDF directly on my form in model-driven app.

 

thanks in advance for your help!!!

Alex

Okay I think I get what you are doing. I created a "RecordGUID" in my SharePoint list. Then set my flow up as such, but when I try and run the flow in my app, I get an error message. Am I supposed to add something else?

 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Users online (4,920)