Hi @Krzysztof Nowicki,,
You can use below design which does the work:
Firstly, sent input in Parse_Json:
Schema:
{
"type": "object",
"properties": {
"BusinessUnitId": {
"type": "string"
},
"CorrelationId": {
"type": "string"
},
"Depth": {
"type": "integer"
},
"InitiatingUserAgent": {
"type": "string"
},
"InitiatingUserAzureActiveDirectoryObjectId": {
"type": "string"
},
"InitiatingUserId": {
"type": "string"
},
"InputParameters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "object",
"properties": {
"__type": {
"type": "string"
},
"Attributes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "object",
"properties": {
"__type": {
"type": "string"
},
"Value": {
"type": "integer"
}
}
},
{
"type": "string"
}
]
}
},
"required": [
"key",
"value"
]
}
},
"EntityState": {
"type": [
"null",
"string"
]
},
"FormattedValues": {
"type": "array",
"items": {}
},
"Id": {
"type": "string"
},
"KeyAttributes": {
"type": "array",
"items": {}
},
"LogicalName": {
"type": "string"
},
"RelatedEntities": {
"type": "array",
"items": {}
},
"RowVersion": {
"type": [
"null",
"string"
]
}
}
}
},
"required": [
"key",
"value"
]
}
},
"IsExecutingOffline": {
"type": "boolean"
},
"IsInTransaction": {
"type": "boolean"
},
"IsOfflinePlayback": {
"type": "boolean"
},
"IsolationMode": {
"type": "integer"
},
"MessageName": {
"type": "string"
},
"Mode": {
"type": "integer"
},
"OutputParameters": {
"type": "array",
"items": {}
},
"OwningExtension": {
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"KeyAttributes": {
"type": "array",
"items": {}
},
"LogicalName": {
"type": "string"
},
"Name": {
"type": [
"null",
"string"
]
},
"RowVersion": {
"type": [
"null",
"string"
]
}
}
},
"ParentContext": {
"oneOf": [
{
"type": "null"
},
{
"type": "object"
}
]
},
"SecondaryEntityName": {
"type": "string"
},
"SharedVariables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
}
]
}
},
"required": [
"key",
"value"
]
}
},
"Stage": {
"type": "integer"
},
"UserAzureActiveDirectoryObjectId": {
"type": "string"
},
"UserId": {
"type": "string"
}
}
}
Then in 1st For each(For each):
outputs('Parse_JSON')?['body']?['InputParameters']
2nd for each(For each 1):
items('For_each')?['value']?['Attributes']
Then in condition, items('For_each_1')?['key']
is equal to mserp_dataareaid
:
Then in Compose:
items('For_each_1').value
Output:
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.