Introduction
When working with objects in Power Automate, there are times when you need to add a new property dynamically — especially when shaping JSON, preparing data for APIs, or building custom outputs.
This is where the addProperty() expression becomes extremely useful.
In this blog, I’ll explain what it is, how it works, and a real-world example of combining data, adding a new column with addProperty().
What is addProperty() in Power Automate?
addProperty() is a Power Automate expression used to add a new key–value pair to an existing object without modifying the original object.
It returns a new object with the additional property.
Syntax:
addProperty(object, propertyName, propertyValue)
Parameters:
| Parameter | Description |
|---|
| object | The base object where you want to add the property |
| propertyName | Name of the property you want to add |
| propertyValue | Value you want to store |
Example:
Scenario
I have a JSON with FirstName and LastName, and I want to dynamically add a third field, FullName, using addProperty().
Flow Design
Step 1: Manually Trigger the Flow
![18-12-2025-02-33-40]()
Step 2: Initialize an Array Variable
[
{
"FirstName": "John",
"LastName": "Doe"
},
{
"FirstName": "Alice",
"LastName": "Brown"
},
{
"FirstName": "Michael",
"LastName": "Smith"
}
]
![19-12-2025-02-26-35]()
Step 3: Initialize an Array Variable
![18-12-2025-02-37-55]()
Step 4: Apply to Each
Step 5 : Add Actions inside Apply to each
![24-12-2025-12-28-54]()
Step 9: Final Compose
variables('varFinalOutput')
![24-12-2025-12-29-41]()
Final Output will be like below JSON:
[
{
"FirstName": "John",
"LastName": "Doe",
"FullName": "John Doe"
},
{
"FirstName": "Alice",
"LastName": "Brown",
"FullName": "John Doe"
},
{
"FirstName": "Michael",
"LastName": "Smith",
"FullName": "John Doe"
}
]
Conclusion
addProperty() allows you to dynamically add new fields to an object in Power Automate without modifying the source data. It is especially useful for merging data from multiple lists, shaping JSON outputs, and creating flexible data structures for downstream actions like Select, Compose, or API calls.