Skip to main content

Is it possible to create a ticket and populate some of the ticket fields using the variables from a query string?

https://domain.freshdesk.com/a/tickets/new/phonenumer=1234/customername=joe blogs/etc

alternative is to use the api to create the ticket and then use with the created ticket number

https://domain.freshdesk.com/a/tickets/1234

 

Hello @mchequer, yes, you would be able to use the create ticket API call to pass the values during the time of ticket creation. You needn’t create a ticket separately and then use the ticket ID to udpate the ticket. 

 

The values that you’d wish to pass should be added as paramters along with the mandatory fields like below: 

 

Create ticket API

If you wish to update certain fields after the ticket has been created, you can use the update ticket API call

 

If you have further queries, please post them here and we’d be happy to help!


To be clear, the answer supplied does not address the question posed. The question was can a ticket’s fields be prepopulated via query parameters, not “can I create a ticket using the API”.

I would also like to know the answer to the original question.


Same here.
Creating a ticket and prefilling a lot of field via query string technique has a completely different use case and value than via API.

Possible flow:

  • in our backoffice system, we add “create quick ticket” functionality on e.g. orders (prefill orderID, backlink URL to that order, value of order, current user), customers, a customer complaint etc
  • important: the current user is sent to the Freshdesk ticket form, with some valuable info prefilled, and then finished off the ticket with more info

Have you seen this discussion?

Pre-populated ticket fields | Freshworks Community

I have not tried it but it looks promising.


Reply