Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to Retrieve Form Parameters after switching Form

(0) ShareShare
ReportReport
Posted on by

I've got a web resource embedded in a form that needs to retrieve parameters from the entity form when it loads.  I am able to use parent.Xrm.Page.context.getQueryStringParameters() to retrieve them without a problem, however, if the user switches to another version of the form, it can no longer retrieve them.  I've set a watch and breakpoint in Chrome to see what the function returns in each case and it seems that the form parameters are removed or ignored when the form gets switched:

Parameters returned when the form initially loads (note CTIData_ and ani_ are both populated):

Parameters returned when the form is changed (note the lack of CTIData_ and ani_ as well as the addition of formid, rof and setlastviewed):

Note: the address bar does not change and still displays the extraqs section which contains the parameter values.

Do others see the same behavior or have any thoughts on how to fix this?  We are on CRM 2013 SP1 UR3

Thanks,

*This post is locked for comments

  • Aric Levin Profile Picture
    30,188 Moderator on at
    RE: Unable to Retrieve Form Parameters after switching Form

    This seems to be the normal behavior when switching forms. The parameters in the qs get removed.

    The situation happens also when you click on the add (+) sign to create a new related record.

    The query string parameters are added when you click on it, however if you change the form they get wiped out.

    Don't have a resolution for this, and I am not sure if there is anything in the MS documentation that have a resolution for this situation, but hopefully you will get a different answer.

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,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans