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 andrewk@albaspectrum.com.
![]() |
|
![]() |
|
![]() |
|
![]() |
With any good luck and a good amount of hard... Read More
At the end of XX century, in the late 1990th... Read More
If you company is small or mid-size special products or... Read More
"Pfishing", sometimes spelled "Phishing", is a word that's used to... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Microsoft Great Plains, designed back in 1990th as database transferable... Read More
We would like to give you several situations, when you... Read More
Language development computer: Computer-based method for aiding language development seems... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
Microsoft Client Relation Management system (Microsoft CRM) and Microsoft RMS... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
Software development is a risky business.Many software developers are barely... Read More
If your company has regional and worldwide operations, you might... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
We've all seen the ads on TV for Netzero 3G.... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
As seeing large number of implementations ? in our case... Read More
There are plenty of articles out there about how to... Read More
You might think you don't need a firewall... Read More
Using professional icons in your application or website can bring... Read More
How do you run a program on a remote server... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
How would you like to prevent spyware and adware from... Read More
Microsoft Retail Management System serves retail single store as well... Read More
The Windows Indexing Service provides you with the ability to... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Sales are all about leverage, because there is only so... Read More
Need software to record your voice, streaming audio or musical... Read More
Before September of 1995, Microsoft ignored the Internet because their... Read More
Remember back in the days where screensavers were the coolest... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
I've been active in the Cisco Certification track for four... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
Let us give you - developer some hints in the... Read More
If you copy something from a Web site or elsewhere...... Read More
Blue Cross and Blue Shield of Hawaii (HMSA) found itself... Read More
I started using PIP (Picture It Publishing) Platinum 2002 right... Read More
Microsoft Business Solutions Great Plains version 8.5, 8.0, 7.5, Great... Read More
Document Management or Enterprise Information Management is perhaps one of... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
One day, you suddenly realize that your computer started to... Read More
Since its release in 1987, QuarkXpress had made an immediate... Read More
Microsoft Business Solutions is now in process of creating so... Read More
Should one use Windows Update?This topic has good and valid... Read More
Microsoft CRM ? Client Relationship Management package from Microsoft Business... Read More
And kill the best layout software in the process of... Read More
Trying to figure out a stream in banning one email... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics/eEnterprise... Read More
Before being able to choose a secure Internet communication system,... Read More
Crystal Reports is the most flexible tool on the market... Read More
In today's business world it's all but impossible to escape... Read More
The purpose of one of our projects was MS Exchange... Read More
Are you lost in the mess of documents that get... Read More
When Windows fails to boot it is normally caused by... Read More
NOTE: Please take time to read on - it may... Read More
Software |