Microsoft CRM Customization: Integration with thir

Microsoft CRM Customization: Integration with third party SQL Application/Database

by: Andrew Karasev

Microsoft CRM – Client Relationship Management package from Microsoft Business Solutions was initially designed to be customizable with Microsoft Visual Studio.Net and one of its programming languages – C#.Net or VB.Net. You can use ADO.Net, Web Service, Transact SQL scripting and stored procedures, deploy such SQL Server tools as Linked Server to all ODBC/OLEDB compliant database, including ORACLE, Sybase, Ingress, DB2, Unidata, Pervasive SQL, Ctree and even Lotus Notes/Domino. In this small article we would like to give you the clue on programming the integration with SQL third party Database.

First – use Microsoft CRM SDK to initiate communication with Microsoft CRM, we have it in C#:

String[] arr1 = coll.AllKeys;

int loop1, loop2;

for (loop1 = 0; loop1 0?1:arr1.Length); loop1++)

{

String[] arr2 = coll.GetValues(arr1[loop1]);

for (loop2 = 0; loop2

Then you use ADO.Net for calling stored procedure with parameters to do the integration job:

try

{

string SQLStatement=กICS_UpdateAccountPrivate กก+

strAccountId +กก , กก + this.TextBoxWorkPerformed.Text +

กก , ก+doubleEncode(System.Double.Parse(this.TextBoxAnnualRevenue.Text))+ก , ก+

intEncode(System.Int32.Parse(this.TextBoxNumberOfEmployees.Text.Replace(ก,ก,กก)))+ก , ก+

doubleEncode(System.Double.Parse(this.TextBoxAverageGrowthRate.Text))+ก , ก+

กกก+this.DropDownListOwnership.SelectedItem.Text +กก , ก+

intEncode(System.Int32.Parse(this.RadioButtonList.SelectedItem.Value))+ก , ก+

intEncode(System.Int32.Parse(this.TextBoxCredit.Text.Replace(ก,ก,กก)))+ก , กก+

this.TextBoxComments.Text+กกก;

System.Data.SqlClient.SqlConnection tmpConnection =

new System.Data.SqlClient.SqlConnection(ConfigurationSettings.AppSettings[กConnectionStringICSก]

);

About The Author

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide Great Plains, Microsoft CRM customization company, based in Chicago, California, Texas, Florida, New York, Georgia, Colorado, Oregon, Washington, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is CMA, Great Plains Certified Master, Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer. You can contact Andrew: 18665280577 [email protected].

[email protected]

This article was posted on October 18, 2004

by Andrew Karasev