Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to show SharePoint Documents in Main Form in Unified Client Interface?

(0) ShareShare
ReportReport
Posted on by

In Legacy web Client form i added SharePoint Attach Documents to Main Form it was easy to achieve with IFrame and piece of JavaScript.

i.e,

var url = Xrm.Page.context.getClientUrl()  
            "/userdefined/areas.aspx?formid=b7569426-ad11-448c-a43d-2dfe8b37a232&inlineEdit=1&navItemName=Documents&oId={"  
            Xrm.Page.data.entity.getId().replace("{", "").replace("}", "")   "}&oType=10152"  
            "&pagemode=iframe&rof=true&security=852023&tabSet=areaSPDocuments&theme=Outlook15White";

            Xrm.Page.getControl("IFRAME_SharePointDocument").setSrc(url);

But the same thing is not working in Unified Client Interface.

when i try to upload document i'm getting error as follows:

legacyDocumentUpload.JPG

and i think Unified interface is not using IFrame for document upload.

Please someone help me through this.

Thank You

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: How to show SharePoint Documents in Main Form in Unified Client Interface?

    Thank you for help but I tried the same which you suggested.  I hardcoded "otype".

    I am able to have attach document iframe and I can see attached documents too. But when i try to attach new document using upload button in iframe it's throwing above error.

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,393 User Group Leader on at
    RE: How to show SharePoint Documents in Main Form in Unified Client Interface?

    Hi Harsha,

    The reason behind your issue could be the deprecation of xrm.page.context, see this link Important changes coming in Dynamics 365 Customer Engagement. Please follow the link(Unified Interface: SharePoint Document Integration iFrame Broken) to solve your problem. Hope it will help you.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans