Is There a Way to Conditionally Run the 'Add Usage Log' Step Without Interrupting the Rest of the Workflow in Pipedream?

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

hello my pipedream peeps. Had a quick q around conditionals.

currently i have a flow where i add a usage log row to a postgres table at the beginning of a flow (this is later used by stripe for metered billing).

What i’m wondering is, if there is a way to conditionally run this add usage log step, but still continue through the rest of the workflow even if the usage log step is skipped?

Right now this can only be done using code steps.

But control flow (if/else branching) is coming very soon!

Alternatively, maybe you could conditionally change the data that you’re inserting into the table?

So the step would be executed no matter what, but you would know to ignore certain records in the table (later, when you use them to do stuff).

Hey thanks for the help! I ended up adding a sandbox column to my Postgres db that way if the api usage record is sandbox it won’t update the stripe metered usage