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.
town car ride to ohare Bethalto .. Lockport Chicago limo O’HareMS CRM is very close to document workflow automation, including... Read More
Midsize business or non-profit organization should decide if one-vendor solution... Read More
We will base our prognosis on our Microsoft Business Solutions... Read More
What is 'adware'?Adware is basically software or scripts that are... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
For a windows user like me, just can watch with... Read More
Microsoft Business Solutions CRM data conversion deserves FAQ type of... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
At the end of XX century, in the late 1990th... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software eEnterprise,... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
Former Great Plains Software Dynamics/eEnterprise and currently Microsoft Business Solutions... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
It is a well known fact that Java as a... Read More
DBxtra goes ASPGetting to the information hidden within corporate databases... Read More
It's not very often I get excited about a software... Read More
The Windows Indexing Service provides you with the ability to... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Anti-virus software is used to find, remove or fix files... Read More
Microsoft Business Solutions Great Plains is very popular ERP/MRP applications... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
It is possible that if one avoided all sources of... Read More
The software giants don't do everything and don't always produce... Read More
Whether you have used Microsoft Word for years, have just... Read More
Gurnee Lincoln Stretch rentals ..Anyone who has ever used Microsoft Word knows that it... Read More
It's no secret that software companies operate in a very... Read More
There is many things more frustrating than surfing a website... Read More
When you own a small business, time is money. And... Read More
Task Manager is a Windows system utility that displays thetasks... Read More
Software development is a risky business.Many software developers are barely... Read More
I like my software simple. If it's too complex or... Read More
Some introduction into Great Plains Software products, now Microsoft Business... Read More
Buying accounting software is a major investment. It's an important... Read More
Fortunately one of the most common reasons cited for the... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
There are many commands that are used in linux on... Read More
Microsoft Great Plains fits to majority of industries, in the... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
Document Manager and Version HistoryIn previous articles I have discussed... Read More
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
Remember nice and prosperous Clinton era? When you implemented innovative... Read More
Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More
#5 All your hardware components like Printers, PCs etc come... Read More
It???s easy to understand why you might be drawn to... Read More
Microsoft Great Plains fits to majority of horizontals and retail... Read More
Microsoft Business Solutions ? Navision is an integrated solution for... Read More
Research bears that less than 70 percent of development projects... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
In order to meet regulatory and corporate compliance requirements reporting... Read More
Software |