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)

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

I have the same question (0)
  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at

    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.

  • Community Member Profile Picture
    on at

    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.

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
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans