Workflow toggle to allow webhooks to be in the same variable context as the main workflow

The idea is:

I have noticed that webhooks are in a seperate context than the main workflow. This causes problems when you want to use counter variables in the main workflow that you want to be in scope in the webhook workflow. ie: counter variables that you want to increase in the main workflow and decrease in the webhook workflow. it would be nice if there was a workflow setting slider switch that allowed varables in the main workflow to be in context in the workflow.

My use case:

I think it would be beneficial to add this because:

Any resources to support this?

Are you willing to work on this?

J’ai rencontré un problème similaire où je voulais partager des variables entre un webhook et le workflow principal, notamment pour des compteurs. Ce que j’ai fait, c’est stocker ces variables dans un stockage externe (comme Redis ou une base de données) pour les lire et mettre à jour dans les deux contextes. Ce n’est pas aussi pratique qu’une option native, mais ça fonctionne bien. Peut-être que tu peux aussi envisager d’utiliser les fonctions “Set” et “Get” avec un stockage persistant pour simuler ce partage. Pas 100% sûr, mais ça pourrait être une piste en attendant une éventuelle fonctionnalité.