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
  • Task purpose
  • Potential use case
  • Task properties
  • Configure the task
  • Related information
AppsStudioTasksTask reference

assign

Was this page helpful?
Previous

calculateTimeDiff

Next
Built with

Task purpose

The assign task copies all enumerable properties from a source object to a target object. It returns a modified target object with properties and values pushed from the source object. The target object is the first parameter and is also used as the return value (targetObject).

Potential use case

Suppose you have an ordered list of emails in a collection and you want to assign them into a numbered list. The target object and the source object will be given the numerical assignments in the final list.

Task properties

IncomingTypeDescription
targetObjectRequired. The target object to apply the source properties to.
sourceNObjectRequired. The source object containing the properties to copy.
OutgoingTypeDescription
targetObjectObjectThe target object.

Configure the task

In the example below:

  • Property a has been assigned the value 1 in the target object.
  • Property b has been assigned the value 2 in the sourceN object.
  • The source object "b": 2 is copied to the target object, and targetObject returns the combined result "a": 1, "b": 2.
Target object
Source object
Output

Related information

  • assign API reference