Able to create same variable in Journey and Global But when I create first global variable then I am not able to create journey variable with same name

Hello Team
I am able to create variable with same name in Journey and Global variables ( here first I am creating journey variable then global variable )
But when I create first global variable then I am not able to create journey variable with same name.
Is it a bug or kept in purpose, please help to understand



Hi,
Better avoid conflict of variables with same name in journey or global.
That keeps your development safe from bugs.
Kindly go for unique variable names.

1 Like

Hello @Subhrajit_Gupta
totally agree with you,
actually one of our client came up with this instance, so want to understand why it there in platform, does it has any purpose or just a bug

Variables should not be of the same name ideally.
In case of being same, it would be able to fetch value for which it should be assigned
even if there is some priority assigned from global to local if you were to access variables like that.

1 Like