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.
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
SOFTWARE PIRACY We regularly hear reports... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
First we had the original Google search that evolved into... Read More
Current Microsoft Business Solutions Great Plains has more that 10... Read More
The software giants don't do everything and don't always produce... Read More
Microsoft Business Solutions Great Plains has many years of successful... Read More
OEComplete is a utility for managing the personal information of... Read More
Fleet Maintenance Management is a critical position in any company... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
In a previous article, I wrote about OpenOffice... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
Customer Relationship Management or CRM is a combination of enterprise... Read More
The world of small business accounting software can be a... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
This article illustrates the best practices to improve the performance... Read More
What is RAID RECOVERY?RAID stands for Redundant Array of Inexpensive... Read More
Once upon a time not so long ago, there was... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
There are several kinds of software piracy. The bottom line... Read More
Almost all new and major brand of PCs come with... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
What is Snort?Snort is an open source network intrusion detection... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
We live in a post-industrial age where information is the... Read More
Ok... Where to start?Well, I guess I will start at... Read More
Three highly respected names in Human Resources have joined forces... Read More
Former Great Plains Software Dynamics/eEnterprise and currently Microsoft Business Solutions... Read More
There are two major WYSIWYG(What You See Is What You... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
What is a Web Database?A web database is a database... Read More
Task Manager is a Windows system utility that displays thetasks... Read More
It could just be me, but my experiences with document... Read More
This article will not attempt to advocate the use of... Read More
Our opinion is based on our Microsoft Business Solutions Great... Read More
Your computer cost you from hundreds to thousands of dollars,... Read More
It is a well known fact that Java as a... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
If you are to buy a HelpDesk & Asset Management... Read More
In today's business world it's all but impossible to escape... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
The java programming language is becoming more and more popular... Read More
In the case when you represent mid-size or mid-size-to-large business,... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
Microsoft Business Solutions Great Plains has substantial market share among... Read More
If you are software developer or database administrator - we... Read More
Need software to record your voice, streaming audio or musical... Read More
Intro This concise article will tell you in plain English... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
Using professional icons in your application or website can bring... Read More
Need help making sense of algebra? Have algebra lectures in... Read More
Accounts payable is just one area of office management where... Read More
I suggest that you do not spend a lot of... Read More
In this small article we will be looking at the... Read More
Before September of 1995, Microsoft ignored the Internet because their... Read More
Words we choose to describe things and phenomena often show... Read More
It is now common thing when large corporation selects mid-market... Read More
Microsoft CRM is winning market share step-by-step from such the... Read More
Microsoft Business Solutions Great Plains has several options to enable... Read More
Customer Relationship Management, abbreviated "CRM," is the term for a... Read More
Software |