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 :
Customer experience | Sales, Customer Insights,...
Unanswered

CRM 2013 cannot pass data using Query String on Custom Navigation Link (upgraded from CRM 2011 UR 18)

(0) ShareShare
ReportReport
Posted on by 15

Hi Everyone, i'm testing to upgrade Dynamics CRM 2011 into Dynamics CRM 2013.
All upgrade process completed successfully. But there's some issue on passing the "id" parameter in custom navigation link (.aspx?id={xxxxxx-xxxx-xxxx-xxx}).



= In CRM 2011 =
When clicked on navigation bar "Product Subscription",  it will show product subscription related to that specific account.
below is example of  Request.QueryString["id"] in CRM 2011, which it works :

txtUserName.Text = "aspxerrorpath " + Request.QueryString["id"] + " testing"; << it get the correct account GUID
pastedimage1664778208681v1.png

 

= CRM 2013 - Navigation Link =
But when i tested to open Account Form CRM 2013, and open the custom navigation link by clicking "Product Subscription", nothing happened.
After some testing, i found out that CRM 2013 doesn't pass the Query String of "id" to the aspx page where the navigation link pointed :

txtUserName.Text = "aspxerrorpath " + Request.QueryString["id"] + " testing"; << this Request.QueryString["id"] returns blank.
txtPassword.Text = Request.QueryString.AllKeys.Contains("id").ToString(); << this Request.QueryString.AllKeys.Contains("id") returns False.

pastedimage1664778931093v2.png

 

= CRM 2013 - iFrame =
The issue only happened on Custom Navigation Link, i created a new iFrame in account form and point it to the same aspx page (same "Product Subscription" page as navigation link), it works as below :

txtUserName.Text = "aspxerrorpath " + Request.QueryString["id"] + " testing"; << this Request.QueryString["id"] returns account GUID.
txtPassword.Text = Request.QueryString.AllKeys.Contains("id").ToString(); << this Request.QueryString.AllKeys.Contains("id") returns True.

pastedimage1664779131497v3.png

So i found out that "id" cant be passed to navigation link in CRM 2013 (while it can on CRM 2011), anyone have idea or solution for this case ?
I hope that it could work like CRM 2011 ("id" can be passed into navigation link page).

FYI :
1. have tried on different browsers (IE, Edge, Chrome, Firefox.
2. the page are in .aspx format
3. have tried update CRM 2013 to SP1 and SP1 UR3

Please kindly help, Thank You.
Yiren

I have the same question (0)
  • Yiren95 Profile Picture
    15 on at

    I found out that the Navigation Link is not working because seems like previous developer was using loadIsvArea, which only available in CRM 2011 and not available to newer version than CRM 2011.
    Anyone have idea for this ?

    Below is current script in form properties :

    function SetLeftNavigation(NavLabel, url)
    {
     var items = Xrm.Page.ui.navigation.items.get();
     for (var i in items)
     {
       var item = items[i];
       var itemLabel = item.getLabel();
       //alert('Item Label: ' + itemLabel);
       if (itemLabel == NavLabel ) {
          var accountId = Xrm.Page.data.entity.getId();
          var itemObj = item.getId();
          var navAcctVal = document.getElementById(itemObj);

          if (navAcctVal != null && navAcctVal != undefined) {
              var u1 = encodeURI(url + '?id=' +accountId);
              navAcctVal.onclick =
              function() {
                loadIsvArea(this, Mscrm.CrmUri.create(u1), false, new Sys.UI.DomEvent(event));
                var navIframeObject = document.getElementById(itemObj + "AreaFrame");

                if (navIframeObject != null && navIframeObject != undefined)
                    navIframeObject.src = u1;
              }
           }
       }
     }
    }

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans