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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

How to see code from Main_system_library.js

(0) ShareShare
ReportReport
Posted on by 35

Hello,

I have a request to create a new functionality. I needed to check how they are opening the new record when clicking of +new button. 

i tried to search for the webresource that was used in ribbon but i am not able to find it anywhere. Is there any place where i can see the code written in it?

From ribbon i found the name as "Man_system_library.js"

Thanks

I have the same question (0)
  • XM-22040801-0 Profile Picture
    11 on at

    Hello,

    What do you want to know about opening a new record?

    If you search to open a new record in javascript : Xrm.Navigation.navigateTo() or Xrm.Navigation.openForm()

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can open the form, hit F12 and look for the code there.

  • noobCoder Profile Picture
    35 on at

    Hello Xavier Monin ,

    Thanks for this. I need to open an URL. Is it possible using navigateto?

    I cannot use openURL functionality as i want it to open in same window and openurl doesnt provide the open to do so. Or if it does please let me know

    I wanted to open the new url in a new session inside dynamics(Currently CSW has feature to have sessions inside dynamics itself) rather than a new tab in chrome. and i figured that if we open in same window it basically creates a new session

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    If you want to open in a new session to an external web page, you can navigate to a HTML web-resource that embedded an iframe.

    Xrm.Navigation.navigateTo({
        pageType: "webresource",
        webresourceName: ""
    });

    Iframes can have security effects, make sure you understand them before using them.
    See https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
    and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe

    Example of HTML web-resource:

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset='utf-8'>
        <title>Set title here</title>
        <style>
            html, body {
                margin: 0;
                padding: 0;
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

            iframe {
                width: 100%;
                height: 100%;
                border: none;
            }
        </style>
    </head>
    <body>
        <!-- Replace the src attribute with the URL of the page you want to show -->
        <!-- Sandbox attribute is added for security reasons (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe ) -->
        <!-- See also Content Security Policy: developer.mozilla.org/.../CSP -->
        <iframe src="https://primno.io" sandbox></iframe>
    </body>
    </html>

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 36

#2
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 32

#3
ManoVerse Profile Picture

ManoVerse 30 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans