UiPath Documentation
sdk
latest
false
UiPath logo, featuring letters U and I in white

Developer guide

Last updated Mar 30, 2026

UiPath.Studio.Activities.Api.Expressions

In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.Expressions.

IDesignTimeExpressionExpanderService

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.10.

Service used to expand/unwrap dynamic expressions at design time, e,g, dynamic file paths.

Properties

TypeNameDescription
stringExpandStringExpands the given string expression.
stringGenerateDynamicStringGenerates a dynamic expression string based on the specified value. For example, if the given string is a file path that is user-specific (e.g. a file path that points to something in My Documents), this will turn that static string into a dynamic, user-agnostic expression that can be "expanded" by ExpandString(string) at design time and evaluated by WWF at runtime. It turns C:UsersUserSomeFolder to something like string.Format("{}\SomeFolder", Environment.UserFolder).

IExpressionService

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Interface for returning tokens from an expression.

Methods

IEnumerable GetIdentifierAndLiteralList(string expression, string expressionLanguage)

Returns a flat list of all identifiers and literals encountered in the given expression, in the order in which they were encountered.

Parameter TypeParameter NameRemarks
stringexpressionThe expression to tokenize.
stringexpressionLanguageThe dark theme.

Token

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

The smallest element of an expression, for example an identifier or a literal value.

Properties

TypeNameDescription
stringStringRepresentationThe name of the token.
stringTokenTypeThe token type.
TypeExpressionTypeThe type of expression.

TokenType

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

The type of token.

Constants

TypeNameDescription
stringObjectCreationThe token represents the creation of an object.
stringIdentifierReferenceThe token represents the referencing of an object or method by name.
stringLiteralUsageThe token represents the usage of a literal value.
  • IDesignTimeExpressionExpanderService
  • Properties
  • IExpressionService
  • Methods
  • Token
  • Properties
  • TokenType
  • Constants

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated