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
= 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.
= 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.
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 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;
}
}
}
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156