PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Substring

Returns the part of a text that starts at a given position and runs to the end.

Substring returns everything from a given position to the end of a text, for example the part after a prefix of known length. Positions count from 0. To take a piece of a fixed length instead, use Take From Middle.

Add the action

In the Process Designer toolbox, open String and pick Substring (or type Substring in the search box).

The Substring action properties: Input String, Input Position and The Resulting Substring

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input StringInputTextYesThe text to take the part from.
Input PositionInputIntegerYesWhere the part starts. The first character is at position 0.
The Resulting SubstringOutputTextYesThe text from Input Position to the end.

Example

Input StringInput PositionThe Resulting Substring
Hello world6world
Hello world0Hello world
Hello5(empty text)
Hello10the step fails
Hello-1the step fails

Good to know

  • Positions start at 0, so position 6 is the seventh character.
  • A position past the end of the text fails the step with "startIndex cannot be larger than length of string." A position equal to the length gives an empty text.
  • A negative position fails the step with "startIndex ('-1') must be a non-negative value."
  • If the position comes from another step, check it against Length first, or connect the step's error route.

On this page