I was curious if there is a setting somewhere to have a new variable default to the widest scope available instead of going to the “smallest” one it is inside. For example, if have a Sequence inside the Process.xaml and create a new variable, I would like the default Scope to be Process instead of the Sequence that is inside the Process.
If you create a variable in Process xaml inside a sequence the scope of the variable would be that sequence not Process. If you want that variable to be used in Process and sequence xaml give the scope as process it will be accessible for both sequence and process xaml. So it’s your wishful thinking.
UiPath Studio does not have a built-in setting to change the default scope of a new variable when created inside different activities or scopes. The default behavior is that when you create a new variable within a specific activity or scope (e.g., Sequence), the variable’s scope is set to that activity or scope by default.
Also you can use arguments in order to pass values from inner scope to outer scope