> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.itential.com/itential-platform/2023-2/studio/tasks/reference/assign/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server. # assign > Reference for the assign workflow task, which copies enumerable properties from a source object to a target object. ## 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 | Incoming | Type | Description | | --------- | ------ | -------------------------------------------------------------- | | `target` | Object | Required. The target object to apply the source properties to. | | `sourceN` | Object | Required. The source object containing the properties to copy. | | Outgoing | Type | Description | | -------------- | ------ | ------------------ | | `targetObject` | Object | The 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`. ![](/_fern-img/c9ab309b7f2406e6e6c0821cf2cd2851528a03afd88fc40995e7f056ab2bd7b3.webp)![](/_fern-img/ac201c6dc0c89b7d43ced8dc98bb8941ee1fb9fe246ae61118353c1c23745bff.webp)![](/_fern-img/0ee8d6a34a89f8edc68f1ef9104cec85ece1ea9fceb69b2582be0ea177a35363.webp) ## Related information * [assign API reference](https://apidocs.itential.com/2023.1/api/app-workflow_engine/assign/) > Reference for the assign workflow task, which copies enumerable properties from a source object to a target object.