web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Access URL parameters from JavaScript

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at
    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

  • Community Member Profile Picture
    on at
    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?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans