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.
post construction cleaning Deerfield ..Great Plains Accounting, accounting package for mid-size and small companies... Read More
This is a short article, written in question/answer/FAQ style to... Read More
eStore Advantage allows front-office applications to communicate with back-office business... Read More
Here is some free software tools to help you build... Read More
When making a decision to buy any piece of software... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
C++ Function templates are those functions which can handle different... Read More
An operating system (abbreviated OS) is essentially the path through... Read More
In our opinion, traditional approach when you select ERP/MRP system... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
OEComplete is a utility for managing the personal information of... Read More
IntroductionDuring the early years of our modern computer era, very... Read More
Now that spyware is the single most dangerous threat to... Read More
Linux essentials:It's free for download but you have to pay... Read More
It is a well known fact that Java as a... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
People often ask me: What image file formats will Photoshop... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
In the early days of the personal computer, we're talking... Read More
Introduction To ISDN, Part III: Configuring PPP PAP AuthenticationNow we... Read More
Background: For many organizations like ours, the interim target of... Read More
Should one use Windows Update?This topic has good and valid... Read More
Accounts payable is just one area of office management where... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
Airbnb cleaning service Bannockburn ..Microsoft Great Plains fits to majority of industries, in the... Read More
Following tips help you to learn a software in lesser... Read More
It is possible that if one avoided all sources of... Read More
IntroductionDuring the early years of our modern computer era, very... Read More
We all already got used to computer monitoring both at... Read More
Microsoft CRM is now on the scene and it is... Read More
Microsoft Business Solutions Navision serves both European and American megamarkets.... Read More
Microsoft Office program is a programming tool called Visual Basic... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
If you copy something from a Web site or elsewhere...... Read More
There are two approaches for application integration:? Programmer's approach ?... Read More
If you company is small or mid-size special products or... Read More
DBxtra goes ASPGetting to the information hidden within corporate databases... Read More
Crystal Reports is the most flexible tool on the market... Read More
Music downloads are off the charts! We're listening to digital... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Former Great Plains Software Dynamics/eEnterprise and currently Microsoft Business Solutions... Read More
Once a business idea is selected, it is highly recommended... Read More
Microsoft Business Solutions Great Plains has substantial market share among... Read More
During the years of our consulting practice, which comes back... Read More
You've finally created databases that you can actually use to... Read More
When you need a phone number, you do a quick... Read More
Let's first look at your ERP system selection (without Retail... Read More
What is Interactive Mapping?Interactive mapping is a visual display medium... Read More
We will base our prognosis on our Microsoft Business Solutions... Read More
Software |