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.
elite cleaning services Mundelein ..If your company has regional and worldwide operations, you might... Read More
When making a decision to buy any piece of software... Read More
User interfaces and accessibility are some of the most important... Read More
Simply put, fleet maintenance allows companies to monitor and maintain... Read More
Just stress testing one of the latest Linux distributions. Been... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
It won't matter how effective your WinRunner Team is if... Read More
It is possible that if one avoided all sources of... Read More
When you visit department stores and see that majority of... Read More
The most important benefit of XML is its simplicity. Though... Read More
The intuitive algorithm.Roger Penrose considered it impossible. Thinking could never... Read More
Let's first look at your ERP system selection (without Retail... Read More
Microsoft Business Solutions Navision is main ERP application for European,... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
When you first think about multicurrency ? you probably have... Read More
Great Plains Inventory Management (IV) module gives your business a... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
If you have been using the Internet for any amount... Read More
Scrapbooks are very popular these days. I think that almost... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
There are two approaches for application integration:? Programmer's approach ?... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
Microsoft Business Solutions Small Business Manager is scaled down Great... Read More
Airbnb cleaning service Mundelein ..New post-recession era has new features, which didn't exist in... Read More
Combining Microsoft Business Solutions Great Plains ERP with non-Microsoft Business... Read More
If you use Microsoft Outlook (or similar applications) for e-mailing,... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
In the new era of internet marketing the problem of... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
Microsoft Business Solutions Small Business Manager is Great Plains Dexterity... Read More
All your software is stored on a hard-drive. But how... Read More
Looks like Microsoft Great Plains becomes more... Read More
Fortunately one of the most common reasons cited for the... Read More
Microsoft CRM is relatively new player on the now becoming... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
In the real world a "fire wall" is a fireproof... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
Shareware is software that you can try before you buy;... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
Microsoft SQL Server is the leader for inexpensive and middle... Read More
Microsoft Business Solutions Great Plains is very generic accounting application... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
Manufacturing in the USA is far away down from mid... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
A wiki is an editable text-based website. But you don't... Read More
Software |