ZendeskApi_v2 icon indicating copy to clipboard operation
ZendeskApi_v2 copied to clipboard

Adding multiple-entries to custom field: problem

Open PierreVelluet opened this issue 2 years ago • 1 comments

Hello,

first of all, thanks for this wrapper.

I have a hard time figuring out what is the value type needed for a custom field of type "multi-select". For a single select choice, passing a string is ok, but a list of string doesnt work for multi - select's one.

My last attempt:

` CustomField thèmesField = new CustomField(); thèmesField.Id = MyFieldId;

    List<string> themes = new List<string>();
    foreach (Theme theme in SelectedTheme)
        thèmes.Add(thème.Name);

    thèmesField.Value = thèmes;

    ticketZendesk.CustomFields.Add(thèmesField);`

Ticket is well created, though, the field's value "Thèmes" is empty.

Thanks in advance, i stay alert.

Have a great day

PierreVelluet avatar Sep 15 '22 06:09 PierreVelluet

Can you create a failing test case that can replicate this bug?

mozts2005 avatar Sep 15 '22 19:09 mozts2005

As no test case has been submitted, I am going to close this issue. @PierreVelluet if you are still having this issue reopen and submit a pull request with failing test case.

mozts2005 avatar Jun 02 '23 21:06 mozts2005