zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

How to UpdateMany Tickets? #439

Closed vladorjiggy closed 4 months ago

vladorjiggy commented 4 years ago

How to use the UpdateMany method?

I want to update custom_field values of many Tickets. Same custom_field, same value for every Ticket How do i pass field-IDs and value?

UpdateMany Method only retreives a array of parameter and a key

What is this method for, if not for updating many tickets?

vladorjiggy commented 4 years ago

PUSH

vladorjiggy commented 4 years ago

PUSH

nogates commented 4 years ago

@vladorjiggy You can have a look at the test cases here: https://github.com/zendesk/zendesk_api_client_php/blob/2d1659aeb4aea1229a50bc4c567f27ad8fe91722/tests/Zendesk/API/UnitTests/Core/ResourceTest.php#L171-L209

For instance, you can pass an array which contains an ids key. The values of that key will be used to get the tickets you want to update, and will apply the same updates to all tickets.

You can also update many ticketes with individual properties if you don't pass the ids key and instead, the array contain individual ticket data.

Let me know if this helps.

vladorjiggy commented 4 years ago

Thank you very much. This is what I'm looking for.

Vlad

David Tapiador notifications@github.com schrieb am Mo., 2. Dez. 2019, 01:21:

@vladorjiggy https://github.com/vladorjiggy You can have a look at the test cases here: https://github.com/zendesk/zendesk_api_client_php/blob/2d1659aeb4aea1229a50bc4c567f27ad8fe91722/tests/Zendesk/API/UnitTests/Core/ResourceTest.php#L171-L209

For instance, you can pass an array which contains an ids key. The values of that key will be used to get the tickets you want to update, and will apply the same updates to all tickets.

You can also update many ticketes with individual properties if you don't pass the ids key and instead, the array contain individual ticket data.

Let me know if this helps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zendesk/zendesk_api_client_php/issues/439?email_source=notifications&email_token=AJVJCW4T55ICGWP3DMUS35TQWRIIXA5CNFSM4JEXEYF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFR2UXI#issuecomment-560179805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVJCW36K6H6CAFX7BFLJ3DQWRIIXANCNFSM4JEXEYFQ .

ecoologic commented 5 months ago

Hi,

thank you for your request, are you still interested in a solution for this issue?

ecoologic commented 4 months ago

Closing due to inactivity. Re-open if needed.