Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create/update a multiple options field in custom fields #100

Open
antoinebidault opened this issue Jan 10, 2022 · 0 comments
Open

Comments

@antoinebidault
Copy link

antoinebidault commented Jan 10, 2022

I have a custom field in pipedrive set up as following :
image
image

How to create this kind of multiple options field using the client, there is no CustomField class which looks like an array of options ?

    var customFields = new Dictionary<string, ICustomField>();

   var optins = new List<string>()
    {
        "Newsletter",
        "Communication"
    };
    customFields.Add("Optins", <how to put the optins array here ?>);

    await _client.Person.Create(new NewPerson("Test")
    {
        Email = new List<Email>() { new Email() { Label = "Professional", Value = "[email protected]" } },
        CustomFields = customFields
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant