Hotmail

creating a lead in webservice

Unanswered 0 answers

Archived post from September 12, 2013. Product: Hotmail – no longer developed by its maker. Details may be out of date.

Question asked on Sep 12, 2013


private Guid CreateLead(IOrganizationService _service)
    {
        Entity Lead = new Entity("lead");
        Lead.Attributes["Topic"] = "************";
        Lead.Attributes["FirstName"] = "*";
        Lead.Attributes["LastName"] = "*****"
        Lead.Attributes["CompanyName"] = "****"
        Lead.Attributes["Email"] = "****"
        Guid id = _service.Create(Lead);


Error message

'Leadaccount.CreateLead(Microsoft.Xrm.Sdk.IOrganizationService)': not all code paths return a value

Q

No answers yet

Write an answer

Your email address will not be published. Please never post passwords.

This site uses Akismet to reduce spam. Learn how your comment data is processed.