Skip to content

Commit 1eb3869

Browse files
authored
Rectify syntax for setProperty for child property
Function setProperty has incorrect syntax for updating child properties. Rectify it to use only <object> as the very first argument rather than <object>['parentProperty']
1 parent cdceb3e commit 1eb3869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/logic-apps/workflow-definition-language-functions-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ addProperty(<object>, '<property>', <value>)
761761
To add a parent property to an existing property, use the `setProperty()` function, not the `addProperty()` function. Otherwise, the function returns only the child object as output.
762762

763763
```
764-
setProperty(<object>['<parent-property>'], '<parent-property>', addProperty(<object>['<parent-property>'], '<child-property>', <value>)
764+
setProperty(<object>, '<parent-property>', addProperty(<object>['<parent-property>'], '<child-property>', <value>)
765765
```
766766

767767
| Parameter | Required | Type | Description |
@@ -4050,7 +4050,7 @@ setProperty(<object>, '<property>', <value>)
40504050
To set the child property in a child object, use a nested `setProperty()` call instead. Otherwise, the function returns only the child object as output.
40514051

40524052
```
4053-
setProperty(<object>['<parent-property>'], '<parent-property>', setProperty(<object>['parentProperty'], '<child-property>', <value>))
4053+
setProperty(<object>, '<parent-property>', setProperty(<object>['parentProperty'], '<child-property>', <value>))
40544054
```
40554055

40564056
| Parameter | Required | Type | Description |

0 commit comments

Comments
 (0)