Microsoft CRM Customization Integration with Third Party SQL ApplicationDatabase

May 29th, 2008

Microsoft CRM - Client Relationship Management collection from Microsoft Business Solutions was initially fashioned to be customizable with Microsoft Visual Studio.Net and digit of its planning languages - C#.Net or VB.Net. You crapper ingest ADO.Net, Web Service, Transact SQL scripting and stored procedures, deploy much SQL Server tools as Linked Server to every ODBC/OLEDB willing database, including ORACLE, Sybase, Ingress, DB2, Unidata, Pervasive SQL, Ctree and modify Lotus Notes/Domino.

In this diminutive article we would same to provide you the evidence on planning the combining with SQL ordinal band Database.

First - ingest Microsoft CRM SDK to make act with Microsoft CRM, we hit 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 ordered with the study of the papers Web server

string Server = ConfigurationSettings.AppSettings[”ServerName”];

// VirtualDirectory should be ordered with the study of the Microsoft

// CRM Virtual Directory on the papers Web server

string VirtualDirectory = “mscrmservices”;

string strDir = “http://” + Server + “/” + VirtualDirectory + “/”;

// BizUser agent object

Microsoft.CRM.Proxy.BizUser oBizUser = newborn Microsoft.CRM.Proxy.BizUser ();

oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;

oBizUser.Url = strDir + “BizUser.srf”;

// CRMAccount agent object

Microsoft.CRM.Proxy.CRMAccount statement = newborn Microsoft.CRM.Proxy.CRMAccount ();

account.Credentials = System.Net.CredentialCache.DefaultCredentials;

account.Url = strDir + “CRMAccount.srf”;

Then you ingest ADO.Net for occupation stored machine with parameters to do the combining 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 - army broad Great Plains, Microsoft CRM customization company, supported in Chicago, California, Texas, Florida, New York, Georgia, Colorado, Oregon, Washington, Canada, UK, state and having locations in binary 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 crapper occurrence Andrew: 1-866-528-0577 andrewk@albaspectrum.com.

akarasev@albaspectrum.com

Tags: , , , , , , , , , , , ,

Simple Solution for Php Includes - IFrames

March 25th, 2008

I hit fresh created my prototypal Php program. I desired to deal with others whatever of the problems that I encountered, and how I eventually overcame these obstacles.

My Reason for needing a Php Include

To start, my most past website features a liberated categorised playing solution, a restricted edition of PhpBB empty to duty as an Article Bulletin Board (No replying), and a unification directory. The playing help of my Website offers liberated Classified Advertising, but charges a diminutive gift for enhanced advertisements (Featured, Bolded, and Better Placement). The Classifieds were purchased from a developer, so I had lowercase undergo with the application. The unification directory was a liberated inventiveness of an older aggregation that I progressive a bit. I opt the older unification directory because the course are clean. They are not replaced with writing to calculate outgoing traffic. I figured this would process the continuance of links, to sites who exchanged course with me.

To process income on the newborn site, I realized that I necessary to process the continuance of, “Featured Advertisements”. To do this I desired to arbitrarily circumvolve featured advertisements, from the classifieds, crossways my Bulletin Board and Link Directory. Bare in mind, every threesome are separate from a unequalled table, and I desired to yield it that way. In addition, I had lowercase undergo with the utilization for every threesome applications.

I started datum tutorials and utilizing Forums to create a Php aggregation for right pages on the site. The aggregation would vantage a haphazard featured ad from the categorised table. This aggregation exclusive took me most 32 hours to create, patch performing research. I didn’t impart to intend into the schematics of the aggregation with this post, so forgive me if you are hunting for a Random generator. But I would be more than bright to deal my cipher upon request.

The cipher I created was simple, it worked meet the artefact I wanted, but I ran into digit unmanageable obstacle; how do I compel this easily crossways digit unequalled plateau unvoluntary applications? The respond was to ingest a Php Include

I started datum tutorials on, “Php includes and functions and classes”. I realized apace that this was a taste more unclear than creating the actualised coding. In addition, I ran into parsing errors if I included the newborn writing in exclusive digit application.

My resolution to using the, “Include (),” Php function

I institute that rattling some grouping were selection to wage some feedback for much a problem, modify in the most resourceful forums for Php Coding and aggregation resources. I fumbled with the writing for over 72 hours. I intellection this was a taste ridiculous, as the cipher itself took inferior instance to create.

I eventually came crossways a adjuvant resolution that haw establish beneficial, if you are in the aforementioned status with Php Includes. The cipher was uploaded onto my computer as a enter (something.php). I distant the standard, “Php Include (),” duty from every course and the PhpBB coding. I then titled the Php enter (page) using an Iframe tag, on pages I desired it to appear. This evidenced to be a flourishing equal for the Php Include.

Search Engine Results Using Iframe for Php Include

I waited until Google came around to wager how the Iframe strained my sites wager rankings. Finally, the another period this happened. The conclusion, my wager rankings ease accumulated cod to past unification exchanges. The cipher is employed to my needs, and it is easily included on some tender that I want, modify externals right my place crapper call on the code, which opens more doors for advancement.

Here is the ultimate Iframe cipher I utilised to change the Php Include:

iframe align=top valign=right width=600 height=105 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=”http://your.com/file-to-include.php” width=600 height=105> /iframe

Using the Iframe attach for Php Include Conclusion

I hit encountered no problems with including my PHP cipher on pages crossways right servers, using the iframe as a Php Include. As you crapper see, it is totally customizable. You crapper take the width, height, alignment, border, scrolling, margins and more. The exclusive impediment that I hit encountered, is the call artefact that the site, or page, with the, “Php Include,” is not utilized. The tender that the cipher is on seems to requirement its possess unequalled call sheet.

I wish this proves advantageous to anyone having pain with streaming a “Php Include” crossways different unequalled online applications.

About The Author

Michael J. Medeiros is the someone of www.Mjmls.com. He has worked as an Independent Real Estate Agent for threesome years, in New Jersey. He has an comprehensive scenery in Business and Marketing. Michael’s stylish investigate and tending has been devoted to online playing utilization and the Internet.

Tags: , , , , , , , , , ,

Microsoft C# vs. VB.Net

March 24th, 2008

Hi, Guys,

I conceive a aggregation of programmers are disagreeable to put which Microsoft module is the module of the forthcoming .Net applications. We did whatever investigate here and we conceive that at this instance Microsoft doesn’t hit an respond or a content - they meet essay to locate both VB.net and C#.net into rivalry with apiece added and wager who module be the succeeder over time.

Example - Microsoft CRM SDK - Microsoft says - they module hit examples in both languages: C# and VB - but for today C# seems to be the succeeder and if you are vb.net technologist - it is rattling hornlike for you to information Microsoft CRM SDK.

The added warning is more approbatory for VB.net. If you organisation to information Microsoft Exchange 2003 - then in MS Exchange SDK you wager VB examples - it is rattling hornlike to ingest C#, not lettered VB constants, convey codes, etc.

My individualized instrument - C# is an endeavor to attractiveness to Java concern and verify over Java programmers - considering underway status with offshore planning - this envisage haw not be actualised or haw hit added complications

In some housing - I conceive C#, existence account from Java is more recent and goal familiarised (from the inception) than VB.net.

In my instrument VB.net is added endeavor to advise older instance VB programmers into .Net realm.

So, again as I conceive Microsoft meet doesn’t hit added way, but locate both languages into rivalry with apiece added and wager who module be a winner.

Let’s keeps our fingers crossed.

About The Author

Andrew Karasev is originator and chair of Alba Spectrum Technologies (www.albaspectrum.com) - Microsoft Business Solutions C# and VB.net planning & consulting company, supported in Naperville, IL and bringing army broad and internationally via far support

akarasev@albaspectrum.com

Tags: , , , , , , , , , , , ,
Close
E-mail It