Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

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

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

  • Yiren95 Profile Picture
    Yiren95 15 on at
    RE: CRM 2013 cannot pass data using Query String on Custom Navigation Link (upgraded from CRM 2011 UR 18)

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans