How to trigger user created event in Oauth app | Community
Skip to main content

How to trigger user created event in Oauth app

  • November 3, 2023
  • 4 replies
  • 0 views

Kithiyon

Hi @greg29

I'm a newbie to Zendesk. This is my first app in Zendesk. We are planning to build a paid app for Zendesk.

I want to send a post request to the third-party app from my Zendesk app for every contact creation in my Zendesk account. I have explored your sample apps in your docs. I created the Oauth app because that third-party app supports the Oauth authentication mechanism.

So how can I listen to the user-created event in my Oauth app? And is it possible to create a dynamic settings page? For example, I want to create the input fields based on data from the API request.

4 replies

Hi Kithiyon,
 
For your use case, it may be simplest to build a server-side app.  This would give you more flexibility in dynamically displaying pages based on interactions with external APIs.
 

Kithiyon
  • Author
  • November 16, 2023

Thank you @christopher53

How can I trigger my javascript function in my web app for every contact creation in Zendesk? Does your SDK library have any event APIs to achieve this?


Hi Kithiyon,
 
The Apps Framework doesn't have APIs that listen for user creation, but you can create a webhook in Zendesk Support to send a request to the endpoint of your choice on user creation events.

Kithiyon
  • Author
  • November 30, 2023

Hi @christopher53

I will use Webhooks to listen to the user creation in Zendesk. I'm a little confused here. When do I need to register a webhook by making a post request? Does your app framework invoke any functions post-installation? If yes, I will write functionality to create a webhook inside the function that is invoked post-installation by the app framework.