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)

Display Login user hierarchy in home page

(0) ShareShare
ReportReport
Posted on by 913

does anyone know hot to display login user hierarchy in the home page in supported or unsupported way. I'm using CRM online so not sure even if it is possible

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    I would suggest you to create HTML web resource and add in iframe inside dashboard.

    In HTML design you could show hierarchy using js

    Also make sure that dashboard should be default home page.

  • Suggested answer
    NODAL Profile Picture
    860 on at

    Hi Liton,

    Follow below steps:

    1) Create HTML web resource

    <html><head>

    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>

    <script type="text/javascript">

    document.onreadystatechange = function () {

           if (document.readyState == "complete") {

    var clientUrl=parent.Xrm.Utility.getGlobalContext().getClientUrl();

    var loggedInUserId=parent.Xrm.Utility.getGlobalContext().userSettings.userId;

    var newUrl=clientUrl+"/_root/hierarchy.aspx?etc=8&oId="+loggedInUserId;

    var iFrame=document.getElementById("hirerchy");

    iFrame.src=newUrl;

    }};

    </script>

    </head><body>

    <iframe id="hirerchy" src="about:blank" style='margin:0px;padding:0px;border:currentColor;border-image:none;left:0px;top:0px;width:100%;height:100%;overflow:hidden;position:fixed;z-index:999999'></iframe>

    </body></html>

    2) In Using SiteMap Editor Add URL of above created webresouce in any sub area

    3) Using Personal Option you can select above created sub area as default for your user

    pastedimage1567060501898v1.png

    4) You can do this same for all users in bulk using xrmtoolbox's User Settings utility

    5) Done!

    pastedimage1567060691292v2.png

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi litonn,

    If your home page means dashboard, of course we can embed a web resource to a dashboard.

    1. Just open Customization and select a default dashboard that you want to display the hierachy page.

           7651.a.jpg

    1. The popup setting interface is similar to form editor, click Web resource to add our page.

          4380.b.jpg

          3.Finaly result:

          7725.c.jpg

    Please read this detailed tutorial step-by-step:

    https://www.c5insight.com/Resources/Blog/tabid/148/entryid/271/non-developers-guide-how-to-use-web-resources-for-dashboards-in-dynamics-crm.aspx

    For web resource itself, we could take Ketan's anwser as reference,

    and many thanks to Ketan's code!

    Best Regards,

    Leo

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