Overview
The 'Array Add Items' utility action for Power Automate adds the item(s) provided to the JSON array provided or targeted using a JSONPath expression.
Usage Notes
A sample input and output is provided below:
Input Data:
[
{
"fileName": "1.pdf",
"fileContent": Base64content1
}
]
Input Items:
{
"fileName": "2.pdf",
"fileContent": Base64content2
}
Output Result:
[
{
"fileName": "1.pdf",
"fileContent": Base64string1
},
{
"fileName": "2.pdf",
"fileContent": Base64string2
}
]
Credit Count
This is a Utility action and therefore consumes only 0.05 credits per operation (except 1 credit on the free plan). For example, 100 operations will consume 5 credits on a trial and all paid plans.
Parameters
The default 'Array Add Items' utility action parameters are detailed below:
- Data: The JSON array or object to evaluate
- Items: The items to add to the 'Data' provided
Advanced Parameters
The advanced 'Array Add Items' utility action parameters are detailed below:
- Item Position: Set whether to return the first item, last item or a specified item
- Item Index: Index of the item to return. This is only applicable when the 'Item Position' property is set to 'Specific'
- Path: Select a specific node within the 'Data' using a JSONPath expression
Return Parameters
Action Specific Return Values
- Result - The modified JSON array or object
Standard Return Values
- OperationId - The unique ID assigned to this operation.
- HttpStatusCode - The HTTP Status code for the response.
- HttpStatusMessage - The HTTP Status message for the response.
- Errors - An array of error messages should an error occur.
- Operation Status - Indicates whether the operation has been completed, has been queued or has failed.
0 Comments