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.
move out cleaning service Glencoe ..While paper labeling CDs and DVDs may appear to be... Read More
Several years ago Microsoft purchased Great Plains Software, then Navision... Read More
It is really interesting that a bug can create problem... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
Customer Relationship Management, abbreviated "CRM," is the term for a... Read More
Microsoft Business Solutions Great Plains version 8.5, 8.0, 7.5, Great... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
In the new era of internet marketing the problem of... Read More
Shareware is software that you can try before you buy;... Read More
How to delete the user? This is the first problem... Read More
So, you've bought a new Macintosh, and now you may... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
If you are software developer or database administrator - we... Read More
Best Software Act! is very popular CRM for small and... Read More
What is Interactive Mapping?Interactive mapping is a visual display medium... Read More
As Mozilla Firefox nears 10% market share, with well over... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
It is possible that if one avoided all sources of... Read More
A wiki is an editable text-based website. But you don't... Read More
Microsoft CRM is now on the scene and it is... Read More
2005 ? Back to the Future.What does the future hold?... Read More
The Internet is reshaping every form of communications medium, and... Read More
If you have Microsoft Great Plains as main accounting and... Read More
This is a short article, written in question/answer/FAQ style to... Read More
house cleaning company Bannockburn ..... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
The stakes are high when considering security, privacy, and savings,... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
I have yet to see a business that, sometimes in... Read More
Microsoft Business Solutions Great Plains is mid and even corporate... Read More
With this small article we are continuing Microsoft Business Solutions... Read More
XML Server can be a Web Server that stores the... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
Viruses and spyware usually show up on your computer one... Read More
We live in a post-industrial age where information is the... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
SOFTWARE PIRACY We regularly hear reports... Read More
Upgrading. Downtime. Maintenance. Hardware obsolescence. Implementation issues. The litany of... Read More
Microsoft Business Solutions Small Business Manager is Great Plains Dexterity... Read More
Just the thought of a duel-boot scares many people away,... Read More
Let us give you - developer some hints in the... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
Microsoft Business Solutions Great Plains has Project Accounting module where... Read More
I've been active in the Cisco Certification track for four... Read More
One of the things we can be as certain of... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
If you have Microsoft Great Plains as main accounting and... Read More
During the years of our consulting practice, which comes back... Read More
Follow the steps below to quickly design, generate, and deploy... Read More
Software |