I am trying to figure out how to parse this reply from a tracking service. Some items are returning different jsons in reply. Is this possible with power automate? One example is below. Some items without proofofdelivery return different jsons. Any tips?
{
"type": "object",
"properties": {
"shipments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"service": {
"type": "string"
},
"origin": {
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"addressLocality": {
"type": "string"
}
}
},
"servicePoint": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}
},
"destination": {
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"addressLocality": {
"type": "string"
}
}
},
"servicePoint": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}
},
"status": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"addressLocality": {
"type": "string"
}
}
}
}
},
"statusCode": {
"type": "string"
},
"status": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"details": {
"type": "object",
"properties": {
"proofOfDelivery": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"signatureUrl": {
"type": "string"
},
"documentUrl": {
"type": "string"
}
}
},
"proofOfDeliverySignedAvailable": {
"type": "boolean"
},
"totalNumberOfPieces": {
"type": "integer"
},
"pieceIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"addressLocality": {
"type": "string"
}
}
}
}
},
"description": {
"type": "string"
},
"pieceIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"timestamp",
"location",
"description",
"pieceIds"
]
}
}
},
"required": [
"id",
"service",
"origin",
"destination",
"status",
"details",
"events"
]
}
},
"possibleAdditionalShipmentsUrl": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
6 | |
4 | |
3 | |
3 | |
2 |
User | Count |
---|---|
8 | |
8 | |
8 | |
7 | |
5 |