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.
family-safe home cleaners Northbrook ..Microsoft Business Solutions Great Plains was historically designed to serve... Read More
At the end of XX century, in the late 1990th... Read More
Usually workflow & messaging is realized in CRM and then... Read More
Intro This concise article will tell you in plain English... Read More
Crystal Reports is the most flexible tool on the market... Read More
IBM Lotus Notes Domino and Microsoft CRM (Client Relation Management)... Read More
Microsoft Business Solutions ? Great Plains has captured the US... Read More
If you have been using the Internet for any amount... Read More
Before September 1995, Microsoft Windows was an MS-DOS program. DOS... Read More
When you double-click a layer in the Layer Palette, you... Read More
Security flaws have long plagued Internet Explorer (IE), the market-dominating... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
If you feel intimidated when someone tries to teach you... Read More
What is Spyware?Spyware monitors your surfing habits and sends the... Read More
It???s easy to understand why you might be drawn to... Read More
If you are in a business that passes documents around... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
A LOT OF UNWANTED FILES.When you uninstall an item of... Read More
Stealing company information used to be the specialty of spies... Read More
With the advent of 'Service Pack 2' for Windows XP... Read More
After almost two decades of existence, Quark has become the... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
The adware and spyware definitions list is very long. But... Read More
The purpose of one of our projects was MS Exchange... Read More
residential cleaning services Deerfield ..Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
Crystal Reports is the most flexible tool on the market... Read More
Remember old good days when your company probably had Great... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
It is really interesting that a bug can create problem... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
XML parser is a software module to read documents and... Read More
Scrapbooks are very popular these days. I think that almost... Read More
As of now - Great Plains Dynamics/eEnterprise is transformed/renamed into... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
So, you've bought a new Macintosh, and now you may... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
It won't matter how effective your WinRunner Team is if... Read More
Table of Contents1) Introduction 2) Related Work 3) Framework 4)... Read More
Do you want to get quality software at a reasonable... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
If you've been using MySQL database to store your important... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Many reasons made GBM a unanimous choice for experts, one... Read More
Software |