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.
bathroom cleaning service Northbrook ..Microsoft CRM ? Client Relationship Management package from Microsoft Business... Read More
Microsoft Office program is a programming tool called Visual Basic... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
If you have been running Windows XP for a couple... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
There is many things more frustrating than surfing a website... Read More
(1) Avoid using the same variable again and again for... Read More
Current Microsoft Business Solutions Great Plains has more that 10... Read More
Microsoft Business Solutions Great Plains, Navision, Axapta, Solomon and CRM... Read More
Whether you are a small consultancy firm, a medium sized... Read More
Spyware and malware are large problems for Internet users today... Read More
Microsoft Business Solutions Great Plains, Solomon, Navision, Axapta, Microsoft CRM... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
Let's first look at your ERP system selection (without Retail... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
The most important things you can do for your computer... Read More
Trying to figure out a stream in banning one email... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
I've been active in the Cisco Certification track for four... Read More
Ad-Aware and Spybot are probably the two most well known... Read More
I have recently created my first Php program. I wanted... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
Microsoft Business Solutions is now in process of creating so... Read More
insured cleaning company Wilmette ..2005 ? Back to the Future.What does the future hold?... Read More
You might think you don't need a firewall... Read More
The java programming language is becoming more and more popular... Read More
For a long time now Microsoft's Internet Explorer has ruled... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
I have recently created my first Php program. I wanted... Read More
Before September 1995, Microsoft Windows was an MS-DOS program. DOS... Read More
In the real world a "fire wall" is a fireproof... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
Microsoft CRM has built-in conversion tool, however you should probably... Read More
Adware is a type of Spyware program that displays some... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
Are Spreadsheets Robbing your Enterprise of Competitive Advantage?'90% of "average"... Read More
Customer Relationship Management, abbreviated "CRM," is the term for a... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Microsoft Business Solutions Great Plains is Dexterity-written application and currently... Read More
Microsoft Great Plains is main Microsoft Business Solutions accounting package... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Not all of us have the luxury of working both... Read More
I have always had a tendency to focus on the... Read More
Are you a database professional? Do you work with a... Read More
Microsoft CRM is winning market share step-by-step from such the... Read More
Viruses and spyware usually show up on your computer one... Read More
Fortunately one of the most common reasons cited for the... Read More
Microsoft Business Solutions Great Plains as new ERP for multinational... Read More
Software |