assign
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
Configure the task
In the example below:
- Property
ahas been assigned the value1in thetargetobject. - Property
bhas been assigned the value2in thesourceNobject. - The source object
"b": 2is copied to the target object, andtargetObjectreturns the combined result"a": 1, "b": 2.


