Is there a way to get the "cycle number" and "module number" in a variable to be able to log it?

I am logging the execution errors in an alert with Slack.

With the error handler, I send an alert to slack stating the
Scenario Name
Scenario URL
And Execution ID

That way i can go to the execution that has the failing bundle.
Example:

Scenario: {{var.scenario.name}}
Run ID: <{{var.scenario.url}}/logs/{{var.scenario.executionId}}|{{var.scenario.executionId}}>

But in some scenarios with more than 1 cycle, and many branches and complicated algorithm its quite difficult to find the slack module that actually send the alert.

Is there a way to access the “cycle number” and/or “module number/name” that got the error.
So we could do something like:

Scenario: {{var.scenario.name}}
Run ID: <{{var.scenario.url}}/logs/{{var.scenario.executionId}}|{{var.scenario.executionId}}>
Cycle: {{var.scenario.cycle}}
Module: {{var.scenario.module}}

Thanks in advance

Welcome to the Make community!

That’s a great idea! I’m sure others would agree that this is a nice feature to have.

You can submit this suggestion to the Idea exchange, under Platform ideas and improvements

Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

You could also try the following Make endpoints:

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.