# Substring (String str, Integer startAt)

| Name                     | *Substring*                                                                        |
| ------------------------ | ---------------------------------------------------------------------------------- |
| Applicable To (DataType) | String                                                                             |
| Purpose                  | To retrieve the characters from a specified string.                                |
| Description              | Gets all the characters from the specified string beginning with startAt position. |
| Return Type              | String                                                                             |
| Syntax                   | str \[System.String] – string whose part will be returned.                         |
|                          | startAt \[System.Int64] – start position of the string to return.                  |

![properties](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/vS4ZUC82gfeIkTAoLx5o/properties%201618245974412.png)

## Example

In this example, we are passing the required parameters to the function transformation through a *Variables* object.

Where,

*str* = ABCDEF

*startAt* = 2

![dataflow](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/IZnuVL80AxwNhmg3jK8o/dataflow%201618246042589.png)

Right-click on the function transformation object and select *Preview Output*. You can see that it has returned the string value after second position.

![output](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/nx3vMMcZHkPtkO2PvPSH/output.png)
