Monday, July 15, 2013

Passing parameters to Navigation Link in CRM 2011

In CRM 2011 we have the option to add custom Navigation link. we can add external URL or webresource to the Navigation pane. I wants to add webresource to the navigation pane.

Added webresource to the navigation pane.


Now I wants to pass record GUID as parameter to the webresource. To pass entity properties to the Navigation link, we have to edit entity XML. Export the solution from CRM and then extract the zipfile.
Now open the Customizations.XML file in edit mode. Find the custom navigation link details in the XML, in my case "Custom Link" navigation link.

Modify the navigation link XML in the following way

<NavBarItem Id="navLink{e60ed59a-1121-0e37-65de-3432ed3982e4}" Icon="" Url="$webresource:new_mypage.html" Area="Info" Sequence="9600" PassParams="1"  >

                    <Titles>
                      <Title LCID="1033" Text="Custom Link" />
                    </Titles>
                  </NavBarItem>
                </NavBar>

 
I have added PassParams property to the XML which passes parameters to webresource.

PassParams =     0   do not pass parameters [default]
                           1  pass parameters.


For more information  click
Hope this helps!!!

2 comments:

  1. Hello Guru,

    Does this works with CRM 2013 ?? I am getting Unhandled Exception Error.

    Regards,
    Dharmraj

    ReplyDelete
  2. AWESOME! I can confirm that this works also in CRM 2013. Thanks, you saved the day :)

    ReplyDelete