esp
esp

Reputation: 239

Creating a lead programmatically in CRM Online

I have customized the lead entity in CRM for our business, is there a mechanism in CRM Online via the webservices that I can invoke to insert new records as a Lead in CRM from our local database? I cant find the correct details in Dynamics CRM Online's API. Please help! Thanks. This is in C#.

Upvotes: 1

Views: 3287

Answers (2)

nunoalmeida
nunoalmeida

Reputation: 92

Create your lead and define their attributes and save it

Entity lead = new Entity("lead");

// definition of lead attributes goes here
// lead.Attributes["xxxx"] = yyyy;

service.Create(lead);

Upvotes: 0

Guido Preite
Guido Preite

Reputation: 15128

Use the Simplified Connection

MS Dynamics CRM online 2011 - Authentication issues

and after create the records. The metadata of the Lead entity is here:

http://msdn.microsoft.com/en-us/library/gg334250(v=crm.5).aspx

Upvotes: 1

Related Questions