Can't Emit Events and Trigger Workflows from If/Else Block in My Workflow, Is This a Common Issue?

This topic was automatically generated from Slack. You can find the original thread here.

Hello, I added an if/else block to my workflow and moved some steps into the block that emit events. It seems that I am unable to emit events and trigger workflows from the if/else block. Is anyone having this problem?

Hey , can you share a screenshot of your workflow canvas?

What do you mean when you say you’re trying to emit events and trigger workflows from the if/else block? Are you making an HTTP request or using $.flow.trigger()?

I’m using $.send.emit()

Hmm gotcha, have you tried $.flow.trigger(workflowId, event)? Although it’s still in alpha, this should provide a better DX

I haven’t yet. I will give it a try.

Awesome, let me know if it works!

It works. Thanks