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)

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

    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

    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…

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