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.
efficient cleaning crew Northbrook ..Microsoft Business Solutions Great Plains might be considered as ERP... Read More
Microsoft CRM ? Client Relationship Management package from Microsoft Business... Read More
MicroWorld Technologies, Inc. the leading solutions provider in the area... Read More
Program Flow is what you think it is. How the... Read More
Some companies that are in need of fleet management may... Read More
Traditionally we were considering functionally rich systems, such as SAP,... Read More
In the previous ISDN article, we looked at how and... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
Every day millions of new web documents emerge on the... Read More
In a previous article, I wrote about OpenOffice... Read More
Beginning with Domino version R4 it has integration with the... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
Looks like Microsoft Great Plains becomes more... Read More
Let us give you - developer some hints in the... Read More
Find out why Spyware Removal from computers is important and... Read More
While I was preparing some personal background information for a... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
Assertion facility is added in J2SE 1.4. In order to... Read More
XML Server can be a Web Server that stores the... Read More
Microsoft Business Solutions Great Plains is written in Great Plains... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
Remember old good days when your company probably had Great... Read More
Finding the best spyware removers to detect and remove spyware... Read More
cleaning lady near Wilmette ..Shareware is software that you can try before you buy;... Read More
So let's begin crunching down these 300 images using Adobe... Read More
Microsoft Great Plains has substantial mid-market share in the USA... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
Formatting and reinstalling windows 98 is very easy if you... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
How would you like to prevent spyware and adware from... Read More
What is RAID RECOVERY?RAID stands for Redundant Array of Inexpensive... Read More
As we could imagine, if you are reading this article... Read More
In this small article we will show you the possible... Read More
Are Spreadsheets Robbing your Enterprise of Competitive Advantage?'90% of "average"... Read More
The first thing that you will notice about Linux Red... Read More
Microsoft Business Solutions Great Plains has I'd say end user... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
This is a short article, written in question/answer/FAQ style to... Read More
When reading an article where some term is used often,... Read More
There is many things more frustrating than surfing a website... Read More
Today's business world is fast-paced. No matter what it is... Read More
One of the things we can be as certain of... Read More
Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
There are plenty of articles out there about how to... Read More
There are so many different programs that clutter up your... Read More
Software |