Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Focus sharepoint Dynamics 365

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I'm trying to use the solution of jlattimer  https://community.dynamics.com/crm/b/jasonlattimersblog/archive/2017/01/04/show-sharepoint-documents-on-the-main-form to add the sharepoint iFrame, however, as it gets the control and setsrc, it puts always the focus in this tab, I tried to remove it, by setting the focus away but it doesn't work, 

Xrm.Page.getControl("name").setFocus(true);

Any help please?

Thank you

*This post is locked for comments

  • Charlotte Seddon Profile Picture
    Charlotte Seddon 38 on at
    RE: Focus sharepoint Dynamics 365

    Hi,

    Has anyone found a solution to this issue yet? We have tried the timeout but the page jumping is not ideal for us.

    Thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    You can move the field in the bottom below iFrame or move iFrame in separate tab

    I think its better to use Tab and put iFrame in separate Tab. Then set focus to the first tab.

    But its more of a Ui decision that you need to make :)

    Please Mark as verified answer if this helps.

    Thanks,

    SM.

  • ZMansuri Profile Picture
    ZMansuri 85 on at
    RE: Focus sharepoint Dynamics 365

    Thanks SM, it does work but gives flickering effect.

    Page goes down to bottom (iframe) and then goes up once focus to set to first field.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    Hi

    You can try setting timeout for your set focus call since it might take a while for source to load. The focus should be set after the load is complete?

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

    setTimeout(function () {

    Xrm.Page.getControl("name").setFocus(true);

               }, 9000);

    Try different timeouts to see what works best

    Please Mark as verified answer if this helps.

    Thanks,

    SM.

  • ZMansuri Profile Picture
    ZMansuri 85 on at
    RE: Focus sharepoint Dynamics 365

    Hi Guys,

    I am facing same issue with Dynamics 365, is there any solution for this ?

    Thanks,

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    Hello

    You may consult your Sharepoint integration issue to Tenfold , it's a great phone to CRM integration and has all of the features you need and more (click to dial, call pop up, creating new lead and follow up task from pop up, handling multiple matches, etc.). It supports several phone systems and CRMs like MS Dynamics. Here's a list of their integrations: www.tenfold.com/.../dynamics

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    up

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    Thank you, I actually can't change the solution, is it possible to find a way to set the focus away after the

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

    the

    Xrm.Page.getControl("name").setFocus(true);

    sets it for seconds and then gets back to the sharepoint tab :(

  • ScottDurow Profile Picture
    ScottDurow 19 on at
    RE: Focus sharepoint Dynamics 365

    No - there is no supported way of adding the documents view to a form.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Focus sharepoint Dynamics 365

    Is there any other way to do this ?

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans