# Available steps for management scripts in task elements

## Set Value in Objects

[![step1.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/4v7yZ2Sdmp4GO0md-tmpw6hgoij3.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/CA2eMzaMz9PLD30J-step1.png)

This step allows you to assign different types of values to three available object types within your management scripts.

[![step1-form.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/zjAKDFIHAwLfppDK-tmpil70are7.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/KrqdiRJjgDBEPbXp-step1-form.png)

### Available Objects

[![step1 dict_type.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/SB4ir27rWkEhMVLS-tmp5o912i57.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/0vrcX7MHSWeOfMKu-step1-dict-type.png)

The three available objects where you can set values are:
- **data** - For storing and manipulating data values
- **settings** - For configuration and settings parameters
- **context** - For contextual information and workflow variables

### Value Types

[![step1-value type.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/PWNOuUv4779lVJ2l-tmpsyzyc97z.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/PfNyoMVkdZI7VKb3-step1-value-type.png)

You can set values using different data types and sources depending on your requirements.

### Examples

#### Example 1: Setting a Value in the Settings Object

Setting the `uplink_rx_bytes` parameter in the settings object using information stored in the data object:

[![step1exam1.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/Pr2lYjEjNUpkV2ZW-tmpfehj7pkn.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/bZHkfyrsZz9llfZb-step1exam1.png)

The above configuration generates the following code:

```python
settings['uplink_rx_bytes'] = round(int(data.get('uplink_rx_bytes_val', '0')) * 0.000000001, 3)
```

#### Example 2: Adding an Email Destination to the Context Object

Adding an email destination to the context object:

[![step1exa2.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/EQ3pRhgoFMVz0pmQ-tmpg2nr5jz5.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/N1RLhGutlGA31tI0-step1exa2.png)

The above configuration generates the following code:

```python
context['email_destination'] = 'user@mail.com'
```

## Set Last Configuration in Object

[![step2.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/eAhn8HGAUefbScJG-tmp3mu70guv.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/yua29f3E8nFEflrp-step2.png)

This step allows you to retrieve the last configuration and assign it to one of the available objects. This is useful when you need to access or reference previously saved configuration data within your management scripts.

### Examples

#### Example: Setting Last Configuration in the Context Object

Setting the last configuration in the context object inside the `automation_custom_output` key:

[![step2exa1.png](https://docs.zequenze.com/uploads/images/gallery/2026-02/QOQ5k3YcsUmQa4hK-tmpwcw0nhkm.png)](https://docs.zequenze.com/uploads/images/gallery/2023-09/z7033ScjQcjelm1v-step2exa1.png)

The above configuration generates the following code:

```python
context['automation_custom_output'] = config.get_last_config()
```