Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Where I will get "clientglobalcontext.js.aspx" file for accessing crm field value

Posted on by 185

I have field in CRM..

Again I will open the html form and will access the crm field. 

For that I need to add "clientglobalcontext.js.aspx" this file. where I will get this file. 

Please help.

*This post is locked for comments

  • Jharana Baliyar Singh Profile Picture
    Jharana Baliyar Singh 2,665 on at
    RE: Where I will get "clientglobalcontext.js.aspx" file for accessing crm field value

    Hi All,

    while debugging one of my html web resource am getting error with " Failed to load resource: the server responded with a status of 404 ()" at <script src="../ClientGlobalContext.js.aspx" type="text/javascript"></script>

    What could be the problem ? My debugger is not getting hitting.

    Thanks,

    Jharana

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Where I will get "clientglobalcontext.js.aspx" file for accessing crm field value

    Hi Chandrasekaran,

    Also, if the form that you are trying to get the value from is the parent form, you don't really need the Client Global Context.

    You can use parent.Xrm.Page.getAttribute("new_myattribute").getValue()

    Hope this helps.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Where I will get "clientglobalcontext.js.aspx" file for accessing crm field value

    Hi Chandrasekaran,

    Just add a reference as shown below. There is no need to add a custom Web Resource in this name.

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

    See: msdn.microsoft.com/.../gg328541.aspx#BKMK_ClientGlobalContext_js_aspx

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans