# Create mapping

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(296\).png?alt=media)

Maps variables to arguments of a sequence being called.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-2617afa37936a108bf11672d94dfbc9cb3800d07%2FData_create_mapping.png?alt=media)

Properties

\- Variable\*: \[LTools.Common.Model.VariablesMapping] Variable to store mapping

\- Assignments\*: \[System.Collections.Generic.Dictionary] Map collection (Argument name - Variable name)

LTools.Common.Model.VariablesMapping

Properties:

\- \[String] \[Scripting.Model.ScriptVariable]: Variable reference

\- ThrowOnKeyNotExists \[Boolean]: Throw exception if argument does not exist

Methods:

\- AddMapping(string, Scripting.Model.ScriptVariable): Add new mapping (argument, variable)

\- DeleteMapping(string): Delete mapping (argument)

Addition:

You can also create mapping in the code, using, for example, the C # Script element.

{% content-ref url="../../els\_prog/el\_prog\_cs" %}
[el\_prog\_cs](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_prog/el_prog_cs)
{% endcontent-ref %}

In this case, the script may be like:

```
map.DeleteMapping("arg1");
map.AddMapping("arg2", new ScriptVariable() { Value = var1, Name = "var1" });
```
