Hi Everyone,I am trying to create a ticket via the API but I cannot load custom data that is in a list.Below is my XML<?xml version="1.0" encoding="UTF-8"?><ticket alert="false" autorespond="false" source="API">    <name>John Smith</name>    <email>johnsmith@email.com</email>    <subject>API Test 3</subject>    <phone>123456789</phone>    <topicId>1</topicId>    <message type="text/plain">Testing API</message>    <fixedquote>100</fixedquote>    <chargetype>1,Chargeable</chargetype>    <ip>10.10.10.10</ip></ticket>chargetype is a list field and has two optionsChargeableNon ChargeableIn the database table these two values are represented like:1,Chargeable2,Non ChargeableI have tried using 1,Chargeable and Chargeable and 1.Any assistance would be greatly appreciated.Ben

From the documentation:"Choice and Selection Fields: Use either the key specified with the choice field, or the name of the field. For selection fields, do not use anything from the extra column of the list designer."source: https://github.com/osTicket/osTicket/blob/43bf186db9e85c8ec218158ea4c0bc3e90bbe3eb/setup/doc/api/tickets.mdHope that helps.

Write a Reply...