Page 1 of 3
Multiple 'Created' webhooks.
Posted: Wed May 10, 2023 12:37 am
by Carl Hansen
I have a SharePoint workflow that adds/ updates data when a job is created or modified. It seems I am sometimes receiving multiple 'created' webhooks. I have added condition in to prevent double ups, though is there a reason for this?
Re: Multiple 'Created' webhooks.
Posted: Wed May 10, 2023 1:17 am
by Sindre
Hi Carl,
The create job webhook should only be triggered once if you only do one POST request.
If you add more cost centers or similar it will trigger the job updated webhook.
Depending on your subscriptions it might also trigger a separate webhook for job status.
I don't know how Sharepoint could affect the flow or if it does several actions to create a job.
Regards
Re: Multiple 'Created' webhooks.
Posted: Wed May 10, 2023 2:43 am
Hello,
I'm experiencing a similar behavior. I created a web hook which triggers every time an invoice status is updated. I have a test invoice which I unlock and change the status on for the test. Every time I change the status, I get two responses from simPro which causes my logic to run twice therefore doubling the data I'm trying to capture which is definitely an unwanted behavior. How do I prevent that? Thank you.
Re: Multiple 'Created' webhooks.
Posted: Wed May 10, 2023 5:35 am
by Sindre
Hi Marcin,
Are you doing the invoice changes in Simpro or in the API?
Could you please send me a private message with the two different webhooks you receive when updating the invoice status and a short step by step description on your process so we can investigate and try to reproduce this.
Regards
Re: Multiple 'Created' webhooks.
Posted: Wed May 10, 2023 6:01 am
by Carl Hansen
Hi Sindre,
The webhook triggers when a job is created or updated, however the action 'created' is being sent twice within a couple of seconds.
See screenshot attached of flow log.
Thanks,
Re: Multiple 'Created' webhooks.
Posted: Thu May 11, 2023 2:57 am
Hello Sindre,
I sent you the PM. Just wanted to see if you were able to look into this.
Thank you.
Re: Multiple 'Created' webhooks.
Posted: Thu May 11, 2023 5:57 am
by Sindre
Hi, thanks to everyone who has reported issues with multiple webhooks being fired.
We have gathered the information that has been provided and we are working in identifying the problem.
Regards
Re: Multiple 'Created' webhooks.
Posted: Thu May 11, 2023 2:59 pm
Thank you Sindre. Looking forward to your update.
Re: Multiple 'Created' webhooks.
Posted: Fri May 12, 2023 6:41 am
by Carl Hansen
Thanks Sindre, look forward to a resolution.
FYI a webhook is being sent twice for nearly every job now.
Re: Multiple 'Created' webhooks.
Posted: Tue May 16, 2023 6:01 am
by brendonv
Just adding we are seeing the same issue with multiple webhooks fired for job status updates.
Thank you