QuestionQ157Verified/Variables and ArgumentsCopy linkReport a problemAsk AstroTutorSave questionIn a UiPath Studio project, what is the widest scope that a variable can have?AWithin the activity in which it is defined.BWithin the surrounding "Do" or "Body" sequenceCGlobal, available in the entire project.DOutermost container in the current xaml project file.Show AnswerAnswerExplanationA UiPath variable can be used by activities inside its defining container and nested containers. Its maximum scope is the outermost container of its current XAML workflow file; variables are not globally available throughout the entire project.Learn moreStudio – Managing Variables (Scope) – UiPath DocsShow comments2Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion