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.
to o hare transportation Riverwoods .. Lockport Chicago limo O’HareMicrosoft Business Solutions Great Plains was designed back in the... Read More
Manufacturing in the USA is far away down from mid... Read More
There are many commands that are used in linux on... Read More
SAP Inc., a global leader in client/server enterprise application software... Read More
Best Software Act! is very popular CRM for small and... Read More
In this short FAQ style article we would like to... Read More
Find out why Spyware Removal from computers is important and... Read More
Rapid Application Development (RAD) is a software development methodology. In... Read More
Words we choose to describe things and phenomena often show... Read More
Some companies that are in need of fleet management may... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
If you would like to pick something from Microsoft, or... Read More
With thousands of web pages added to the Net every... Read More
Icons are used everywhere; right from software applications, to internet... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More
Having from five to ten and more favorite screensavers is... Read More
All your software is stored on a hard-drive. But how... Read More
Is Photoshop CS2 worth the upgrade? You bet it is!... Read More
Microsoft Business Solutions Great Plains is mid and even corporate... Read More
While paper labeling CDs and DVDs may appear to be... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
Since technology changes so quickly, it is hard to begin... Read More
This is the tutorial where we really get into programming.... Read More
Cadillac Escalade rental Beaverville ..When you think... Read More
Upgrading. Downtime. Maintenance. Hardware obsolescence. Implementation issues. The litany of... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
OEComplete is a utility for managing the personal information of... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
There are so many different programs that clutter up your... Read More
Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More
Scrapbooks are very popular these days. I think that almost... Read More
SOFTWARE PIRACY We regularly hear reports... Read More
Combining Microsoft Business Solutions Great Plains ERP with non-Microsoft Business... Read More
Microsoft Great Plains, former Great Plains Software Dynamics / eEnterprise... Read More
There are many commands that are used in linux on... Read More
After almost two decades of existence, Quark has become the... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Microsoft Outlook is one of the most widely used software... Read More
Usually, the easiest way to tell you have spyware is... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
Microsoft Business Solutions Great Plains has substantial market share among... Read More
Let's say that you have a software project that's under... Read More
This tutorial covers OLAP solutions used by Data warehouses and... Read More
Microsoft Business Solutions Great Plains, Navision, Axapta, Solomon and CRM... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
Since technology changes so quickly, it is hard to begin... Read More
.NET platform does not support multiple inheritance. Do not confuse... Read More
Microsoft Great Plains, designed back in 1990th as database transferable... Read More
Software |