Multiple 'Created' webhooks.

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Carl Hansen
Posts: 17
Joined: Wed Feb 01, 2023 11:57 pm

Multiple 'Created' webhooks.

Post by Carl Hansen » Wed May 10, 2023 12:37 am

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?
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Multiple 'Created' webhooks.

Post by Sindre » Wed May 10, 2023 1:17 am

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
Sindre
API Developer | Simpro Software Group
[email protected]
Posts: 5
Joined: Wed May 10, 2023 2:28 am

Re: Multiple 'Created' webhooks.

Post by [email protected] » 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.
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Multiple 'Created' webhooks.

Post by Sindre » Wed May 10, 2023 5:35 am

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
Sindre
API Developer | Simpro Software Group
Carl Hansen
Posts: 17
Joined: Wed Feb 01, 2023 11:57 pm

Re: Multiple 'Created' webhooks.

Post by Carl Hansen » Wed May 10, 2023 6:01 am

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,
Attachments
Multiple Webhook.png
Multiple Webhook.png (53.88 KiB) Viewed 17217 times
[email protected]
Posts: 5
Joined: Wed May 10, 2023 2:28 am

Re: Multiple 'Created' webhooks.

Post by [email protected] » 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.
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Multiple 'Created' webhooks.

Post by Sindre » Thu May 11, 2023 5:57 am

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
Sindre
API Developer | Simpro Software Group
[email protected]
Posts: 5
Joined: Wed May 10, 2023 2:28 am

Re: Multiple 'Created' webhooks.

Post by [email protected] » Thu May 11, 2023 2:59 pm

Thank you Sindre. Looking forward to your update.
Carl Hansen
Posts: 17
Joined: Wed Feb 01, 2023 11:57 pm

Re: Multiple 'Created' webhooks.

Post by Carl Hansen » Fri May 12, 2023 6:41 am

Thanks Sindre, look forward to a resolution.

FYI a webhook is being sent twice for nearly every job now.
brendonv
Posts: 4
Joined: Tue May 16, 2023 5:58 am

Re: Multiple 'Created' webhooks.

Post by brendonv » Tue May 16, 2023 6:01 am

Just adding we are seeing the same issue with multiple webhooks fired for job status updates.

Thank you
Post Reply