Services Plugins FAQs

Contractor template backend workflows

Hello, I’m using the Contractor template which is fantastic - good job Zeroqode!

I’m having an issue with the backend workflow for sending emails to professionals. Hopefully this is quite straightforward to solve. When the workflow is run (i.e. a new project has just been created), it sends duplicate emails to the professionals (as far as I can work out, the number of duplicates is the number of professionals matching the subcategory). Presume it’s something to do with running on a list on a list but I can’t seem to get it to work. Any help much appreciated :smile:

The workflow seems to work if I remove the ‘list’ endpoint from the process and go straight to the ‘email’ endpoint. Is there a reason the ‘list’ endpoint is used as an intermediary step?

Thanks,
Simon

Hi @simonwarner1,

Thanks for reaching out! Please let us check on it with our developers, then get back to you asap!

Best,
Alex

1 Like

Hi @simonwarner1,

I’m reaching out with an update on progress. We checked on our endpoint and it is set up properly, it is not creating duplicate emails.

Would you please be so kind to let us know if any changes were made to the template? Or it is the freshly created app based on it. Could you please try to create a brand new one to give it a try as well just to make sure?

But if you still encounter this trouble, please share a screencast of your preview so we can see where and how it duplicates the emails. :pray:

We’ll get back to you with another reply asap!

@simonwarner1 Mine does this too. I’ve only changed names of fields, otherwise it’s unchanged from original.

Hi @jason.suttie,

Thanks for letting us know. It should be an issue on our side perhaps. Could you please share a screencast of your preview so we can see how it is duplicating? We’ll try to replicate on our side and report to our developer team so they can fix it asap.

Can do. What do you mean by preview? Do you want to see the app frontend function or workflow?

Thanks @jason.suttie,

By preview means the Bubble’s Preview:

Meaning when you test your app and see these issues, so in this case the app frontend how it behaves. :pray:

Ok, I’ll record one of the process. I queried it because the API that’s causing the problem is in the backend workflow so you won’t actually see it do what it’s doing incorrectly.

Here’s a screencast to show the process. I kept Debugging on ‘Slow’

Screencast

This caused 2 identical emails to be sent to 2 ‘Somms’(Professionals) who matched the criteria.

Sorry @jason.suttie,

But we are not able to understand where the duplicate emails reproduce on your side from this screencast, unfortunately. It only creates the project that we can see which seems to be ok on your side.

Could you please show the email part as well? :pray:

Yes, that’s why I didn’t understand how a screencast would be of any help. Other than looking at the backend all I can show you is 3 identical emails.

Thanks @jason.suttie for helping with this.

@alexandru as it needs the API, I would need to pay for a paid account in order to create a blank template to show you. Given both Jason and I have this issue, I think it is clear that the issue exists but is difficult to demonstrate as it’s a backend workflow. Please let us know what the resolution is once you’ve checked with the developers. Thanks

Thanks @jason.suttie @simonwarner1

Please let us dive deeper with our developer team to check on all setups, then get back to you with working solutions asap.

By the way, in case you want to create a new app based on template for testing purposes, you can always do it with a Hobby plan, because the paid plan is per app and not per account. Bubble lets you create as many apps as you want for free, based on templates.

Guys @jason.suttie @simonwarner1

Please check the following instructions on how to fix this problem. Sorry about this one, it was on our side:

Backend workflows should be set the following way

And on page projectcreation , you can locate the When button PostProject is clicked event:

These are the only changes to be done in order to fix it. :pray:

Thanks @alexandru We’ll get that change made. So the List backend workflow serves no purpose then?

Yes @jason.suttie,

After these changes made, there is no need to use. :pray:

The new changes make the template function properly!