Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Field Service forum / Get SharePoint files i...
Field Service forum
Suggested answer

Get SharePoint files information from related document entity.

(0) ShareShare
ReportReport
Posted on by 80

In the Gird of the document entity in any entity I want to access the file info (file name, Folder location...) from the grid.

when i use "Xrm.Page.getControl("gridName").getGrid.getData()" the return array length is 0 despite there are some files in the grid.

is there anyway to access the related docs to the entity in SharePoint?

  • Suggested answer
    dgdf Profile Picture
    15 on at
    RE: Get SharePoint files information from related document entity.

    If you are speaking about the Document section in the form entity (last tab), this is an iframe object that points to an internal SharePoint view.

    Therefore, you won't be able to get results for the grid object by XRM, if not through not-supported JS code, but it's limited for the already showed informations in the view (name, path, createdby, modifiedon, etc...).

    Dynamics stores only the related SharePoint folder position for the record, and not the details about the list files in it.

    The files in it, are retrieve by internal query in the on load event of the iframe.

    If you need to get details about the files in the folders, you can achieve this only by SharePoint API.

  • Suggested answer
    Community Member Profile Picture
    Microsoft Employee on at
    RE: Get SharePoint files information from related document entity.

    If you are speaking about the Document section in the form entity (last tab), this is an iframe object that points to an internal SharePoint view.

    Therefore, you won't be able to get results for the grid object by XRM, if not through not-supported JS code, but it's limited for the already showed informations in the view (name, path, createdby, modifiedon, etc...).

    Dynamics stores only the related SharePoint folder position for the record, and not the details about the list files in it.

    The files in it, are retrieve by internal query in the on load event of the iframe.

    If you need to get details about the files in the folders, you can achieve this only by SharePoint API.

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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > Field Service forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans