Skip to content

Commit ec20c48

Browse files
authored
Fix order for "replace()" relative to "removeProperty()"
1 parent a9e35fb commit ec20c48

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

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

+33-35
Original file line numberDiff line numberDiff line change
@@ -3740,40 +3740,6 @@ range(1, 4)
37403740

37413741
And returns this result: `[1, 2, 3, 4]`
37423742

3743-
<a name="replace"></a>
3744-
3745-
### replace
3746-
3747-
Replace a substring with the specified string,
3748-
and return the result string. This function
3749-
is case-sensitive.
3750-
3751-
```
3752-
replace('<text>', '<oldText>', '<newText>')
3753-
```
3754-
3755-
| Parameter | Required | Type | Description |
3756-
| --------- | -------- | ---- | ----------- |
3757-
| <*text*> | Yes | String | The string that has the substring to replace |
3758-
| <*oldText*> | Yes | String | The substring to replace |
3759-
| <*newText*> | Yes | String | The replacement string |
3760-
|||||
3761-
3762-
| Return value | Type | Description |
3763-
| ------------ | ---- | ----------- |
3764-
| <*updated-text*> | String | The updated string after replacing the substring <br><br>If the substring isn't found, return the original string. |
3765-
||||
3766-
3767-
*Example*
3768-
3769-
This example finds the "old" substring in "the old string" and replaces "old" with "new":
3770-
3771-
```
3772-
replace('the old string', 'old', 'new')
3773-
```
3774-
3775-
And returns this result: `"the new string"`
3776-
37773743
<a name="removeProperty"></a>
37783744

37793745
### removeProperty
@@ -3871,6 +3837,38 @@ Here's the updated JSON object:
38713837
}
38723838
```
38733839

3840+
<a name="replace"></a>
3841+
3842+
### replace
3843+
3844+
Replace a substring with the specified string, and return the result string. This function is case-sensitive.
3845+
3846+
```
3847+
replace('<text>', '<oldText>', '<newText>')
3848+
```
3849+
3850+
| Parameter | Required | Type | Description |
3851+
| --------- | -------- | ---- | ----------- |
3852+
| <*text*> | Yes | String | The string that has the substring to replace |
3853+
| <*oldText*> | Yes | String | The substring to replace |
3854+
| <*newText*> | Yes | String | The replacement string |
3855+
|||||
3856+
3857+
| Return value | Type | Description |
3858+
| ------------ | ---- | ----------- |
3859+
| <*updated-text*> | String | The updated string after replacing the substring <br><br>If the substring isn't found, return the original string. |
3860+
||||
3861+
3862+
*Example*
3863+
3864+
This example finds the "old" substring in "the old string" and replaces "old" with "new":
3865+
3866+
```
3867+
replace('the old string', 'old', 'new')
3868+
```
3869+
3870+
And returns this result: `"the new string"`
3871+
38743872
<a name="result"></a>
38753873

38763874
### result
@@ -5550,4 +5548,4 @@ Here's the result: `Paris`
55505548

55515549
## Next steps
55525550

5553-
Learn about the [Workflow Definition Language](../logic-apps/logic-apps-workflow-definition-language.md)
5551+
Learn about the [Workflow Definition Language](../logic-apps/logic-apps-workflow-definition-language.md)

0 commit comments

Comments
 (0)