Skip to content

Cant create contact as lead  #164

@mohamadDev

Description

@mohamadDev

actually i solved it but because it was a minor fix I am dropping my solution here
solution
create a class "lead" extends contact

public class Lead: Contact
    {
        public string role { get; set; }
        public Lead()
        {
            role = "lead";
        }
    }

Create Lead

Authentication auth = new Authentication("yourAPITokenHere");
RestClientFactory factory = new RestClientFactory(auth);
ContactsClient contactsClient = new ContactsClient(factory);
var cont = new Lead() {email = "A@b.c", app_id= "yourppidhere"  };
contactsClient.Create(cont);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions