Question : Add menu item to isv config to go to a guid-specific http location

I want to add a right-click menu item called "Documents" to the "Accounts" entity in MS Dynamics 4.0  

"Documents" is a pre-created SharePoint document location with a unique address based on the GUID of the currently highlighted account.

Here is an example:

http://blah.blah.net:84/Accounts/7F76DB81-3D89-DF11-85B1-0050568D1C17/Documents%20for%20Review/Forms/AllItems.aspx

The right-click functionality in CRM needs to construct the full string using the GUID of the current record and pass the string to something that executes the resultant http string (and launches a new browser window).

Fundamentally, at runtime, I just need to be able to concatenate the full string so that a "menuitem" contains the fully qualified path to the SP document list.

The menu item in the ISV config might be something like this:

<MenuItem JavaScript="BuildMyString("http://blah.blah.net:84/Accounts/", AccountGUID, "/Documents%20for%20Review/Forms/AllItems.aspx");">

I'm not even sure where to start so any pointers might be helpful.

Thanks,

Ken






Answer : Add menu item to isv config to go to a guid-specific http location

Hi Ken,

It is 'cause the way guid is formatted from CRM. Try this for final :

<Button Icon="/_imgs/ico_18_debug.gif" JavaScript="var url = getSelected('crmGrid'); url = url.toString().substr(1, 36); window.open('http://blah.net:84/Accounts/' + url + '/Documents%20for%20Review/Forms/AllItems.aspx')" WinParams="" WinMode="2">

Regards,
Chinmay

Random Solutions  
 
programming4us programming4us