zenpy icon indicating copy to clipboard operation
zenpy copied to clipboard

Copying and creating TicketField from Sandbox to Prod is failing

Open Capn-Phtephen opened this issue 4 years ago • 1 comments

Hi,

First off - Zenpy is amazing and has been extremely useful over the years.

However, I have a question (which may be the result of a lack in Python knowledge) that I would appreciate some feedback on.

I am attempting to copy information from our Zendesk Sandbox to our live instance, beginning with TicketFields, then Forms and finally Triggers & Automations.

When I attempt to create the TicketField, I get the following error: zenpy.lib.exception.APIException: {"error": "RecordInvalid", "description": "Record validation errors", "details": {"title": [{"description": "Title: cannot be blank", "error": "BlankValue"}]}}

Some code for what I am trying: field = zenpy_box.ticket_fields(id='1900000103174') created_field = zenpy_prd.ticket_fields.create(field)

When I print the serialised object, I get the below output: {'id': 1900000103174, 'custom_field_options': [{'id': 1900000392114}, {'id': 1900000392134}, {'id': 1900000392154}, {'id': 1900000392174}, {'id': 1900000392194}]}

Is there a way to achieve what I am doing?

Best regards, Stephen

Capn-Phtephen avatar Aug 27 '21 17:08 Capn-Phtephen

Did you deal with it

data1456 avatar Mar 01 '22 08:03 data1456