.NET (29) Archiving (10) ASP.NET (9) Books (3) C Sharp (30) Code Generation (3) Dasblog (16) Design Patterns (4) Development (37) Exchange (14) Family (10) GPS (7) Hardware (10) mixuk07 (1) Mountaineering (7) MSCRM (6) Office (3) Outlook (13) Personal Development (4) PHP (4) PowerShell (7) Productivity (9) RSS (15) Running (2) Scripting (20) SCRUM (3) Service (3) Software (60) Support (17) TaHoGen (2) Technical (50) Tools (13) Twitter (5) Web (16) Windows 7 (4) Windows Mobile (10) WS* (1)
Sign In
One of the projects I am involved with at work was evaluating Microsoft CRM (MSCRM).
Out of the box, it comes as a pretty well fully featured CRM application, but it is also hugely customizable. I downloaded the SDK from here and had a quick play.Within 20 – 30 minutes I had a quick extension / customisation working – it is a simple webpage allowing customers to register their own details and when submitted, that customer is automatically added to MSCRM.
It was incredibly simple to get working, just :-
You're done...
Below is some sample code – it only picks up a few details about the contact, but should be fairly easy to enhance ... Enjoy
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MsCrmSdk;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
btnInsert.Click += new EventHandler(btnInsert_Click);
}
void btnInsert_Click(object sender, EventArgs e)
string salutation = txtSalutation.Text;
string firstName = txtFirstName.Text;
string lastName = txtLastName.Text;
string emailAddress = txtEmailAddress.Text;
CrmService svc = new CrmService();
svc.Url = "http://10.10.121.226:5555/mscrmservices/2006/crmservice.asmx";
svc.Credentials = new System.Net.NetworkCredential("kenh", "Exchange1", "kennet");
contact newContact = new contact();
newContact.salutation = salutation;
newContact.firstname = firstName;
newContact.lastname = lastName;
newContact.emailaddress1 = emailAddress;
Guid guidResult = svc.Create(newContact);
txtSalutation.Text = "";
txtFirstName.Text = "";
txtLastName.Text = guidResult.ToString();
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u