Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : TAtKPNnTVMajal6kBpnrhy
Microsoft Dynamics CRM (Archived)

Access URL parameters from JavaScript

Like (0) ShareShare
ReportReport
Posted on 31 Jul 2014 20:14:21 by

I'd like to retrieve the paramater values of a page's url from a onload function.

How am I able to do so?

*This post is locked for comments

  • Community Member Profile Picture
    on 31 Jul 2014 at 21:48:36
    RE: Access URL parameters from JavaScript

    Hi Scott,

    I am trying to use Use "Xrm.Utility.openEntityForm" to open a new window.

    Where should I put the function?

  • Suggested answer
    ScottDurow Profile Picture
    19 on 31 Jul 2014 at 20:51:27
    RE: Access URL parameters from JavaScript

    Hi,

    First you have to send parameters in a specific way using encodeURIComponent as described by msdn.microsoft.com/.../gg334375.aspx

    Then you can then configure the form to accept them as described by : msdn.microsoft.com/.../gg334436.aspx

    If you do want to get the raw query string parameters you can use Xrm.Page.context.getQueryStringParameters() - msdn.microsoft.com/.../gg334511.aspx

    Hope this helps,

    Scott

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,768 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete