Assign Parameter

The Assign Parameter activity enables you to change the value of an existing process context variable without using the Script activity. Read more about context variables in the "Process context" article.

You often need to change the value in order to insert it into another system correctly. For example, when a form for entering a phone number requires a specific format.

You can use the Script activity for complex computational operations. It allows you to work with variables using code, enable any C# libraries and NuGet packages.

However, it is easier to use the Edit parameter activity for simple operations. For example, when you need to change the value of only one variable to write an email, calculate the row number in a table, get initials from the user name, or put the current date into a variable.

This activity allows you to change only one context variable. You cannot enable other libraries to create complex scripts. But you can easily edit process variables in ELMA RPA Designer.

Another way of using the activity is changing the counter state when using the “While” loop.

Activity settings

To open the settings window, click on the activity on the process diagram.

Parameters Tab  

The Parameters tab displays the basic activity parameters.

edit parameter parameters

  • Name. The activity name on the process diagram. It is set by the template when adding the activity. If you want to change the name, you can do it in this field.
  • Description. Detailed information about the activity.
  • Parameter. Select a context variable for editing its value.
  • Expression. The value that will be assigned to the selected context variable. You can use C # arithmetic operators, LINQ queries, and process context variables to change the value. To add a variable, click the add variables button button and select the required one. The added variables are displayed as {$variable name}. You can fill in the field manually, following the same format.

Examples of using expressions for changing parameters

Conditions Tab

Read more about the Conditions tab in the "Basic activity settings principles"article.

Found a typo? Highlight the text, press ctrl + enter and notify us