Run one of two queries depending on condition

Hey @LindenKel! Welcome back to the community. :slightly_smiling_face:

I'm glad to hear that you found a workaround and were able to get this working!

Looking back at the examples that you've shared, it feels like the root of your issue is selectRow running asynchronously. I'm not sure if this is expected, but the better solution is to just iterate through tableInscription.data normally and dynamically pass each element into email_confirmation.trigger() or email_confirmation_provisoire.trigger() using additionalScope. There's a great guide on how to do that here.

I hope that helps! Let me know if you have any additional questions.

1 Like