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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

check if a Sharepoint location has documents

(0) ShareShare
ReportReport
Posted on by

Hi,

We have within our CRM Contacts some empty Sharepoint locations without any documents.

Is it possible to view with the Sharepoint / CRM API if a location has any documents in it?

So if it is empty, we want to delete this Sharepoint location.

Kind regards,

Arie

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Arie!
     
    You have to make a request using SharePoint API to check it. I believe that there is no an out-of-box functionality for that operation.

    Hope it helps.

    Please mark it As Answered or Verified if it did help you.

    Thanks

    Vlad
    dynamicalabs.com

  • Community Member Profile Picture
    on at

    Hi Vlad,

    Tnx for answering!

    We have figured it out how to make a request using the Sharepoint API and we can check if a Contact record in Dynamics has a Sharepoint location.

    But we really want to check if there are any documents in that location.

    Do you know if that is possible?

    Kinds regards,

    Arie

  • Community Member Profile Picture
    on at

    Hi Arie!
     
    We have used the following command to get the list of all files for specified location in our project.
     
    $"{siteurl}/_api/web/getfolderbyserverrelativeurl('{folderName}')/files";

    Hope it helps.
     
    Please mark it As Answered or Verified if it did help you.

    Thanks

    Vlad
    dynamicalabs.com

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans