# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FJEwKyGJ01pZK9X1lhx6A%2Fproperties%201618245974412.png?alt=media)

## 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FTpmlC8DP4Q2iqbuuZ9c8%2Fdataflow%201618246042589.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FGWkBiX67ZI4LPnQlWHRU%2Foutput.png?alt=media)
