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.
housekeepers near Wilmette ...The first thing that you will notice about Linux Red... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Business Solutions ? Navision is an integrated solution for... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
Great Plains Purchase Order Processing (POP) module makes up one-third... Read More
When you need a phone number, you do a quick... Read More
Since its release in 1987, QuarkXpress had made an immediate... Read More
If you have Microsoft Great Plains and support it for... Read More
Formatting and reinstalling windows 98 is very easy if you... Read More
Traditionally we were considering functionally rich systems, such as SAP,... Read More
Microsoft Business Solutions Navision is main ERP application for European,... Read More
We will base our prognosis on our Microsoft Business Solutions... Read More
There are plenty of articles out there about how to... Read More
Our company, Novaprof Inc., developed unique software - DB Integration.... Read More
Microsoft Great Plains fits to majority of industries, in the... Read More
Microsoft Business Solutions Great Plains fits to majority of horizontal... Read More
When reading an article where some term is used often,... Read More
Microsoft Business Solutions Great Plains is very generic accounting application... Read More
Microsoft Great Plains, designed back in 1990th as database transferable... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics/eEnterprise... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
move in cleaning service Glenview ...The Windows Indexing Service provides you with the ability to... Read More
I have yet to see a business that, sometimes in... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
Intro This concise article will tell you in plain English... Read More
If you look back to the history, you will see... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
Just when you thought you were Web savvy, one more... Read More
Several years ago Microsoft purchased Great Plains Software, then Navision... Read More
Remember back in the days where screensavers were the coolest... Read More
Microsoft Great Plains has full-featured Manufacturing suite of modules: Capacity... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
It's not very often I get excited about a software... Read More
The first thing that you will notice about Linux Red... Read More
Stealing company information used to be the specialty of spies... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Ok... Where to start?Well, I guess I will start at... Read More
When making a decision to buy any piece of software... Read More
"Pfishing", sometimes spelled "Phishing", is a word that's used to... Read More
Our opinion is based on our Microsoft Business Solutions Great... Read More
Lotus Notes Domino is very efficient in electronic document workflow... Read More
So, why should you use any O/R mapping tool? I... Read More
Whether you have used Microsoft Word for years, have just... Read More
For those who are unclear on the differences between the... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
Around the same time Microsoft made its move with .Net... Read More
Software |