For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Platform On-Prem
    • Overview
    • Navigate
    • Search resources
  • Apps
      • Overview
      • Navigate
        • Configure and manage tasks
        • Null vs. undefined values
        • Parallel branches
          • Overview
          • addDuration
          • arrayIncludes
          • arrayLastIndexOf
          • arrayPop
          • arrayToString
          • assign
          • calculateTimeDiff
          • charAt
          • charCodeAt
          • childjob
          • codePointAt
          • concat
          • concatArray
          • convertEpochToObject
          • convertTimeFormat
          • convertTimeToEpoch
          • convertTimezone
          • copyWithin
          • csvStringToJSON
          • deepmerge
          • delay
          • endsWith
          • ErrorHandling
          • evaluation
          • eventListenerJob
          • excelToJson
          • extractField
          • fill
          • FlattenJSONFormInput
          • getTime
          • includes
          • arrayIndexOf
          • indexOf
          • isArray
          • join
          • keys
          • lastIndexOf
          • length
          • length (string)
          • localeCompare
          • makeData
          • map
          • match
          • merge
          • modify
          • newVariable
          • normalize
          • objectHasOwnProperty
          • objectToString
          • padEnd
          • padStart
          • parse
          • parseInt
          • pop
          • push
          • pushToArray
          • query
          • repeat
          • restCall
          • reverse
          • runCode
          • search
          • setObjectKey
          • shift
          • slice (array)
          • slice (string)
          • sort
          • split
          • startsWith
          • stringValueOf
          • stub
          • substring
          • toLocaleLowerCase
          • toLocaleString
          • toLocaleUpperCase
          • toLowerCase
          • numberToString
          • toString (array)
          • toString (number)
          • toString (object)
          • toUpperCase
          • transformation
          • trim
          • trimEnd
          • trimStart
          • unshift
          • updateJobDescription
          • values
          • viewData
    • FlowAI
    • Itential Automation Gateway
  • Resources
    • Itential Academy
    • Version lifecycle
    • Itential MCP
    • Accessibility conformance
    • Get support
    • FAQs
LogoLogo
Open sourceSupportFAQsDocs Home
On this page
  • Potential use case
  • Properties
  • Example
AppsStudioTasksTask reference

trimStart

Was this page helpful?
Previous

unshift

Next
Built with

The trimStart task removes whitespace at the beginning of a string.

Potential use case

If you want to make sure no spaces remain at the beginning of any datasets in a string entry, use the trimStart task to find and remove them.

Properties

IncomingTypeDescription
strStringRequired. The string to remove whitespace from.
OutgoingTypeDescription
trimmedStartStringA new string representing the input str stripped of whitespace from its beginning (left end).

Example

In this example, a New Job Variable is used to input data into the trimStart task, and the New Variable Name is “string”. The new variable value is Hello World, with spaces at the beginning and end of the words.

New Variable task configured with value Hello World including leading and trailing spaces

Next, the trimStart task is used to reference New Variable: String within the reference task. The reference value is automatically set to accept the value from the task being used as an input.

trimStart task referencing the New Variable String task

After running the job, notice that the incoming variable has spaces before and after the words Hello World as shown by the placement of the quotation marks.

Incoming variable showing spaces before and after Hello World

The trimmedStart variable upon output will be "Hello World" and the whitespace before the word “Hello” has been removed.

trimStart task output showing Hello World with leading whitespace removed