Recent searches
No recent searches
Which Zendesk API creates a ticket for the salesforce case object?
Posted Sep 02, 2021
I need help to create a ticket from Salesforce APEX to Zendesk. I need an API that helps me to create a ticket for the salesforce case object. When I used the below API it always creates tickets for the account object.
My Ticket API
API method ==> post
API URI==>https://xxxxxxxxx.zendesk.com/api/v2/tickets.json
API Request body==>
{
"ticket": {
"type": "problem",
"organization_id":"null",
"priority":"low",
"status":"new",
"subject": "test-8",
"description":"test-8",
"comment":"test",
"custom_fields": [
{
"id": 360039024751,
"value": "test summary"
}
]
}
}
0
9
9 comments
Eric Nelson
Hey there,
When you say that this API is creating a ticket for the account object. Are you saying that the account object is being set as the requester?
Have a wonderful day!
Eric Nelson | Manager - Developer Advocacy
0
Md Shamim
@Eric Nelson, thanks for your reply, Let me describe how this API work or how I used this API. In salesforce, after a successful closed-won quote fires the trigger, APEX creates a ticket used the above API. This new ticket is related to the account object.
Try Postman with the above API, hope it also works for you.
0
Eric Nelson
Hey there,
Apologies but I'm still a bit lost. Are you saying that the ticket creates a link to the account object instead of the case object?
0
Md Shamim
Yes, you are right I try to create a ticket for Case Object but unfortunately when I try the ABOVE API with APEX it always creates a ticket for the quote-related account object, not for the related Case object.
I am looking for an API that helps me to create a ticket for the case object. Is the above API capable to create tickets for the CASE object?
0
Eric Nelson
Hey there,
The API endpoint doesn't care what the object that you're sending is, it could be account, case or anything non-related to Salesforce. It sounds like there is something wrong with your Apex script as it's pulling the account object and not the case object as you expect. I'd suggest reaching out to salesforce as they'd be better able to help you with this as the issue isn't related to Zendesk.
0
Md Shamim
There is something wrong, I may miss guide you. I don't see any wrong or error on both sides Salesforce and Zendesk.
In my problem description, I clearly mentioned that I need an API that helps me to create a ticket and this newly created ticket should be sync with the salesforce case, right? Now guide me, how to do that?
What I am looking 'API URI' and 'Request body'. I want to send a request from the Postman after that I hope a new TICKET is created on Zendesk which sync with the integrated salesforce org case object. Hope it makes sense!
After successfully achieve this, I will apply this API on APEX.
0
Eric Nelson
Hey there,
Thanks for the more in-depth explanation. What you're looking for can be accomplished via using the Zendesk to Salesforce ticket sync. Once set up, a ticket created in Zendesk will sync to Salesforce and create a salesforce case.
0
Md Shamim
@Eric Nelson, I already finish the configuration. I told you earlier API created ticket sync with Account, without configuration, it's not possible. Please check my below configuration for the case object.
First thing first, please tell me about the API, what I am looking for? then we discuss the configuration.
Case object configuration.
0
Eric Nelson
Hey Shamim,
Apologies, but it seems things are getting lost in translation. The API isn't the issue here, the endpoint you reference in your initial message is what's needed to create a ticket in Zendesk. If the ticket when being synced back to Salesforce is ending up on the account object then it means there is an issue with your configuration. If you don't mind I'd like to move this into a ticket so that I can get more account specific info.
Thanks,
Eric
0