I am working on a flow that takes Zendesk ticket data and puts it into another data repository. I have the trigger working so that the flow is triggered every time a new ticket is created. However, the ticket record does not contain all of the information I need. I need information about the users related to the ticket, such as the email of the assignee. Whenever I try to get the assignee record to access this information, it doesn't work.
I have tried both the Get Item and Get Items actions provided with the Zendesk connector. I have them configured like this:
When the flow is run, the Get Item action throws an error:
Full error message:
Could not retrieve more than 1000 records from the Zendesk Search API. For more details please see connector limitations.
inner exception: Web.Contents failed to get contents from 'https://<my_org>.zendesk.com/api/v2/search.json?page=11&query=type%3Auser' (422): Unprocessable Entity
inner exception: Web.Contents failed to get contents from 'https://<my_org>.zendesk.com/api/v2/search.json?page=11&query=type%3Auser' (422): Unprocessable Entity
clientRequestId: a66468c7-dca0-446d-822b-dd6fa8c83f87
I don't understand this error as the action is supposed to get one user. Why is it trying to retrieve more than 1000 records?
The Get Items action runs just fine but only returns this:
{
"statusCode": 200,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"Vary": "Accept-Encoding",
"Set-Cookie": "ARRAffinity=c7f51d56e4deb0f015c33ca9d60209f5c83875da8ad9305699b591b9c0c56ce0;Path=/;HttpOnly;Secure;Domain=zendesk-eus.azconn-eus-002.p.azurewebsites.net,ARRAffinitySameSite=c7f51d56e4deb0f015c33ca9d60209f5c83875da8ad9305699b591b9c0c56ce0;Path=/;HttpOnly;SameSite=None;Secure;Domain=zendesk-eus.azconn-eus-002.p.azurewebsites.net",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-request-id": "6edb0c92-abcf-4ecb-9cf6-7ea43b8c9b9b",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Wed, 31 Jul 2024 13:28:53 GMT",
"Content-Type": "application/json; charset=utf-8; odata.metadata=minimal",
"Content-Length": "0",
"Expires": "-1"
}
}
Neither of these actions seems to do what it should. How can I get a specific Zendesk user based on the dynamic content I have from the Zendesk "When an Item is Created" trigger? Why do these actions not behave as expected?