98
Views
5
Comments
Solved
Webhooks Clockify

Hello everyone,

I am currently facing difficulties integrating webhooks into our application. To provide some context, we are trying to integrate Clockify into our project management system to assist with tracking projects. I have created the necessary API calls in Postman and within our application.

The goal is to receive webhooks when a new project is created, when time is captured, etc. While I was able to make it work using https://webhook.site/, I have been encountering issues while attempting to set it up in OutSystems.

I have reviewed the following thread: https://www.outsystems.com/forums/discussion/26091/how-to-setup-webhooks-in-outsystems/#, but I have been unable to make it work.

I am not certain if anyone else has encountered this issue before and attempted to solve it. If so, could you kindly share your experience or suggestions?

Thank you for looking.

UserImage.jpg
Kay Lun
Solution

Hi @André Smit ,

Have tested your oml, which I can get the data from the webhook without any issue.

May I know what's the URL you're using in your Clockify webhook?

I suspect you're using a wrong URL for the webhook, which is why the data seems didn't return back to your OS application.

The URL I'm using for the webhook is :

https://<your environmenturl>/ClockifyWebhook/rest/Webhook/ClockifyWebhook

Uploaded the updated oml file for you reference.

Hope this help :)


p.s. remember to put back your api key and workspaceId in the site property, cuz I removed mine one :P


ClockifyWebhook_tested.oml
UserImage.jpg
Kay Lun

Hi Andre,

Is that possible to share the error message or any parts that contain the errors, so we could narrow down the issue of your applications?

Thanks :)

2023-02-06 14-27-11
André Smit

I intend to set up a personal Clockify workspace and develop a basic API demonstration later today, which I hope will provide more clarity on the topic.

2023-02-06 14-27-11
André Smit

Hello, @Kay Lun. Kindly take a look at the OML attached.

In this demo, I am aiming to capture the webhook only when a new project is created, but it seems that my approach is not correct since the REST API that is exposed is not being called when you save a project.

I hope this explanation is helpful. If you have any questions or if there's anything that needs clarification, please don't hesitate to let me know.

ClockifyWebhook.oml
UserImage.jpg
Kay Lun
Solution

Hi @André Smit ,

Have tested your oml, which I can get the data from the webhook without any issue.

May I know what's the URL you're using in your Clockify webhook?

I suspect you're using a wrong URL for the webhook, which is why the data seems didn't return back to your OS application.

The URL I'm using for the webhook is :

https://<your environmenturl>/ClockifyWebhook/rest/Webhook/ClockifyWebhook

Uploaded the updated oml file for you reference.

Hope this help :)


p.s. remember to put back your api key and workspaceId in the site property, cuz I removed mine one :P


ClockifyWebhook_tested.oml
2023-02-06 14-27-11
André Smit

Thanks @Kay Lun and you were right, I was using in the incorrect URL for the webhook... Appreciate your help on this matter.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.