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
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
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.
@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.