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 < arr2.Length; loop2++)
{
strAccountId = arr2[loop2].Replace("}",null);
strAccountId = strAccountId.Replace("{",null);
}
}
if (Page.IsPostBack==false)
{
// Server should be set with the name of the platform Web server
string Server = ConfigurationSettings.AppSettings["ServerName"];
// VirtualDirectory should be set with the name of the Microsoft
// CRM Virtual Directory on the platform Web server
string VirtualDirectory = "mscrmservices";
string strDir = "http://" + Server + "/" + VirtualDirectory + "/";
// BizUser proxy object
Microsoft.CRM.Proxy.BizUser oBizUser = new Microsoft.CRM.Proxy.BizUser ();
oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
oBizUser.Url = strDir + "BizUser.srf";
// CRMAccount proxy object
Microsoft.CRM.Proxy.CRMAccount account = new Microsoft.CRM.Proxy.CRMAccount ();
account.Credentials = System.Net.CredentialCache.DefaultCredentials;
account.Url = strDir + "CRMAccount.srf";
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: 1-866-528-0577 www.albaspectrum.com.
premium house cleaning Highland Park ..Microsoft Word is one of the most popular office applications... Read More
As Mozilla Firefox nears 10% market share, with well over... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
Let us give you - developer some hints in the... Read More
It's no secret that software companies operate in a very... Read More
In a previous article, I wrote about OpenOffice... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Ok... Where to start?Well, I guess I will start at... Read More
Since technology changes so quickly, it is hard to begin... Read More
Microsoft Business Solutions Great Plains is mid and even corporate... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
The first thing that you will notice about Linux Red... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
Did you ever give a thought to the number of... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
Just when you thought you were Web savvy, one more... Read More
We were recently faced with a decision: either to let... Read More
Midsize business or non-profit organization should decide if one-vendor solution... Read More
Microsoft Business Solutions Small Business Manager is Great Plains Dexterity... Read More
This article is the third of a series of articles... Read More
The adware and spyware definitions list is very long. But... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
How many steps does it take you to locate and... Read More
bedroom cleaning professionals Mundelein ..When you think... Read More
I like my software simple. If it's too complex or... Read More
Whether you are an experienced web programmer or a complete... Read More
During the years of our consulting practice, which comes back... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
Homeland security, airport security, Internet security ??" these days we???re... Read More
Midsize business or non-profit organization should decide if one-vendor solution... Read More
RSS (Really Simple Syndication) is a way for a site... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Here is some free software tools to help you build... Read More
Microsoft Business Solutions ? Navision is an integrated solution for... Read More
It's all about turn times in the eMedia industry! The... Read More
Microsoft Business Solutions is now in process of creating so... Read More
You might think you don't need a firewall... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Customer Relationship Management or CRM is a combination of enterprise... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Spyware is like the new technological nuclear weapon on the... Read More
In our opinion, traditional approach when you select ERP/MRP system... Read More
Intro This concise article will tell you in plain English... Read More
I have recently created my first Php program. I wanted... Read More
Are you lost in the mess of documents that get... Read More
Software |