Customer Engagement & Dynamics CRM Forum

iFrame Sharepoint Documents content/count

  • 1.  iFrame Sharepoint Documents content/count

    Posted Feb 20, 2019 01:10 PM
    I'm using iFrame for SharePoint documents on a form as suggested here:
    Everything is working well, can upload and list documents from the form.

    There's a requirement to show the documents tab only if documents exist and display the totalrecordcount elsewhere on the form. Tried using js/jquery, no luck.
    1. contentDocument, contentWindow.. are unavailable.
    2. Debug shows iFrame document as prevObject:
                 $("IFRAME_abc")                         -->     jQuery.fn.init [prevObject: jQuery.fn.init(1)]
                 $("IFRAME_abc").contents()        -->     jQuery.fn.init [prevObject: jQuery.fn.init(0)]
    4. I see the 'totalrecordcount' in the debug on Elements html in one of the table divs, not sure how to get this from js/jquery

    Any help appreciated.


    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready

If you've found this thread useful, dive deeper into User Group community content by role