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

Question: can't create new Custom Fields and append to ticket #502

Open
croves opened this issue Jan 30, 2022 · 0 comments
Open

Question: can't create new Custom Fields and append to ticket #502

croves opened this issue Jan 30, 2022 · 0 comments

Comments

@croves
Copy link

croves commented Jan 30, 2022

I need to add Custom Fields to a ticket based on a number of factors. I'm trying to automate this job with the following code:

from zenpy import Zenpy
from zenpy.lib.api_objects import CustomField

credentials = {
    'email': ***
    'token': ***
    'subdomain': ***,
}

zendesk = zenpy(**credentials)

ticket_50 = zendesk.tickets(id=50)
ticket_50.custom_fields.append(CustomField(id=123, value='Dummy'))
zendesk.tickets.update(ticket_50)

Am I doing something wrong? Or is not possible at all to achieve this?

Thank you!

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

1 participant