pipedrive-dotnet icon indicating copy to clipboard operation
pipedrive-dotnet copied to clipboard

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

Open antoinebidault opened this issue 4 years ago • 0 comments

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
    });

antoinebidault avatar Jan 10 '22 21:01 antoinebidault