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

Copying and creating TicketField from Sandbox to Prod is failing #487

Open
Capn-Phtephen opened this issue Aug 27, 2021 · 1 comment
Open

Comments

@Capn-Phtephen
Copy link

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

@data1456
Copy link

data1456 commented Mar 1, 2022

Did you deal with it

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

2 participants