Tech Support > Microsoft Windows > Windows CRM > need example code to get the contactID from SFA/conts/edit.aspx...
need example code to get the contactID from SFA/conts/edit.aspx...
Posted by Daniel Lutzenberger on June 15th, 2004


Hi!!

My question is: How can I get the right ContactID from the
current/opened Contact in Microsoft CRM? Can I read the ContactID out
from the URL? Is there an example Code available? Microsoft´s SDK for
CRM is not very helpful for this Problem. Has anybody already an
example code? Thank you for your help!

Greetings

Daniel

Posted by Emanuel on June 15th, 2004


You should be able to get it from the query string, as long as you make sure that the entry in the isv.config file with the link to your app has the variable "PassParams" equal to 1

For example:

<Button Title="Test" ToolTip="Info on Test" Icon="/_imgs/ico_18_debug.gif" Url="http://www.microsoft.com" PassParams="1" WinParams="" WinMode="1"/>

This will open your page with something like "http://www.microsoft.com?oId={contactid}".

Hope this helps.

"Daniel Lutzenberger" wrote:

Posted by Daniel Lutzenberger on June 15th, 2004


Thanks for your Advice!!!

But how can I get the ContactID out from the URL and save it to
another table in SQL Database? I try to make an extra Button
"Attachments" and I want to save the ContactID with the path of the
file to my new table "ContactAttachment". This is seriously a problem
for me. Do you know a way to do that?

Thank you!!


Daniel


"Emanuel" <Emanuel@discussions.microsoft.com> wrote in message news:<ACEFFFFA-3335-40D4-B648-E3ACB3A97B6D@microsoft.com>...


Similar Posts