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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans