How do you set a "Workflow thing"?

Hi all,

Can anyone tell me how do you set/define a think on a workflow. I have a button that start a workflow but this workflow has no thing type define for it. In this workflow I create a thing and a I want to raise an event with the thing I just created. This is driving my nuts :frowning:

According to the documentation:


How do you ā€œIf a type of thing has been defined,ā€ define?

And this is my workflow:

I cannot trigger my custom event cause it expect a thing ā€œDealā€ on it.

Iā€™ll appreciate any help. Thanks.

Alex.

What exactly are you trying to do? Forget the Bubble aspect for a moment. What is supposed to happen once you click the button?

The workflow youā€™ve shown looks to create a new deal and then make a bunch of changes to that deal. I also canā€™t see what the custom event is?

i.e. the workflow extracted from the Bubble documentation looks totally different to what youā€™ve screenshot from your app


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

I cannot trigger my custom event cause it expect a thing ā€œDealā€ on it.

If it expects a ā€˜Dealā€™ then just set the Deal (i.e. result of step 1)ā€¦

Although in your screenshot you donā€™t have a trigger custom event action, so Iā€™m not really sure what youā€™re referring to?..

Hi @adamhholmes thanks for your answer. Indeed there is no ā€œTriggerā€ action cause I cannot set the event name of the trigger action cause it does not show in the dropdown list of possible events in the ā€œTrigger eventā€ action as it expect a ā€œDealā€ thing which I cannot set on my workflow (My problem actually).

ā€œIf it expects a ā€˜Dealā€™ then just set the Deal (i.e. result of step 1)ā€¦ā€ According to the documentation ā€œIf a type of thing has been defined, you will have to pick a thingā€¦ā€ This is exactly what Iā€™m trying to do. But how do ā€œI set the thing type on the workflowā€ā€¦ My workflow is triggered by a button click and create the stuff that I want to send to the event

1 Like

Hi @josh24 Thanks for your answer. Long story short Iā€™m trying to send an email when a new thing ā€œDealā€ is created. Do no be confused by the Create and modify on the workflow. They are actually updating the Result of step 1 based on on some business rules (nothing fancy).

Please find here the action behind the trigger that I do not manage to raise from the workflow. Not sure it helps understanding the issue. This is an handler and it is supposed to be decoupled of the trigger and rely only on the data included in the event :p.

The Event is created and as you can see it expect a ā€œDealā€. The handling of the event is a little more complicated. Iā€™m doing a search and then call an API for each of the thing found on the search to send an emailā€¦ But this will only obfuscate my real question which is: I have button that that start a workflow, how do I set a type of thing for the workflow as stated on the documentation ā€œIf a type of thing has been definedā€?

ā€œi.e. the workflow extracted from the Bubble documentation looks totally different to what youā€™ve screenshot from your appā€ You are right Iā€™m not dealing with already existing thing (User in the doc) Iā€™m creating a new one. I want after the creation of this thing ā€œTrigger a custom eventā€ with this thing attached to it.

Hope this help to understand my issue.

@josh24 @adamhholmes Hi both of you. I found my error. Events are NOT cross components event the backend ones. This is my error. I need to define the event handler on a reusable component or handle the event right from my page. Thanks for your help.

2 Likes