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)

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

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