Answered by:
Opening a specific account in CRM from Dynamic Nav

Question
-
My company recently started to use the Microsoft Connector to connect CRM 2011 to Nav 2009 R2 with a good success.
Now we want to add a button in Nav on the customer card that opens the replicated Account in CRM, the primary key in Nav is mapped to the field account number in CRM but I don't have access to the accounts GUID from within Navision.
can anyone point me into the right direction.
Monday, September 12, 2011 3:49 PM
Answers
-
Not familiar with NAV myself. But first of all, you will have to store the account's ID somewhere in Navision.
After you have account GUID, then you can refer to the following CRM SDK document for instructions about how to contruct the URL that links you to the particular account record.
The url should be in the following format.
- http://mycrm/myOrg/main.aspx?etn=account&pagetype=entityrecord&id=%7B THE LONG GUID %7D
Of course, you should remove all space characters around "THE LONG GUID" in the above URL.
Hope this helps.
Daniel Cai | http://danielcai.blogspot.com- Proposed as answer by Jamie MileyModerator Monday, September 12, 2011 4:46 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 4:00 PM
Monday, September 12, 2011 4:09 PM -
Daniel is correct as one option. You could store the GUID in a string field in CRM and then re-configure your CRM org to pull the new field in the connector into a new field in Nav. Then you just use the format proposed for the URL above.
The other potential option I was thinking about was that you could use some sort of .NET extension for NAV (I don't know how to use .NET with NAV personally) to use web services to pull the data you need via web services with a retrievemultiple call based on the account number you already have. The first method would obviously be quite a bit less work though.
Here are some examples of retrieve and retrievemultiple calls for CRM anyways though:
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Monday, September 12, 2011 4:46 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 4:00 PM
Monday, September 12, 2011 4:46 PMModerator
All replies
-
Not familiar with NAV myself. But first of all, you will have to store the account's ID somewhere in Navision.
After you have account GUID, then you can refer to the following CRM SDK document for instructions about how to contruct the URL that links you to the particular account record.
The url should be in the following format.
- http://mycrm/myOrg/main.aspx?etn=account&pagetype=entityrecord&id=%7B THE LONG GUID %7D
Of course, you should remove all space characters around "THE LONG GUID" in the above URL.
Hope this helps.
Daniel Cai | http://danielcai.blogspot.com- Proposed as answer by Jamie MileyModerator Monday, September 12, 2011 4:46 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 4:00 PM
Monday, September 12, 2011 4:09 PM -
Daniel is correct as one option. You could store the GUID in a string field in CRM and then re-configure your CRM org to pull the new field in the connector into a new field in Nav. Then you just use the format proposed for the URL above.
The other potential option I was thinking about was that you could use some sort of .NET extension for NAV (I don't know how to use .NET with NAV personally) to use web services to pull the data you need via web services with a retrievemultiple call based on the account number you already have. The first method would obviously be quite a bit less work though.
Here are some examples of retrieve and retrievemultiple calls for CRM anyways though:
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Monday, September 12, 2011 4:46 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 4:00 PM
Monday, September 12, 2011 4:46 PMModerator -
Thanks but not quite what I need, I should have mention that Accounts and Contacts we are only replicating data from Nav to CRM but not the other way around so I don't have the GUID in Nav and I don't think we will be moving it to the NAV database, .NET extensions in NAV classic client are quite messy for now as you need to construct a dll and register it to each client computer so I try to avoid it when I can. I thought about this some more and Im thinking about creating an .ASP page that that is opened from Navision with the Nav Customer Number as a parameter and then use the CRM webservices to return the GUID and redirecting the user to the Account Card.Tuesday, September 13, 2011 10:24 AM
-
That is pretty similiar to my second approach I laid out, just not directly from within Nav
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Tuesday, September 13, 2011 1:26 PMModerator