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.