USING POSTMAN FLOWS
USECASE:
Product enrichment in a web shop.
We receive a dataset of updated data. (Sample)
[
{
“Id”: “1”,
“GTIN”: “1GTIN”,
“Color”: “Blue”
},
{
“Id”: “2”,
“GTIN”: “2GTIN”,
“Color”: “Green”
},
{
“Id”: “3”,
“GTIN”: “3GTIN”,
“Color”: “Magenta”
}
]
We have a list of currently existing products in the web shop.
[
{
“Id”: “1”,
“Material”: “Straw”,
“Grams”: 76
},
{
“Id”: “2”,
“Material”: “Straw”,
“Grams”: 72
},
{
“Id”: “22”,
“Material”: “Plastic”,
“Grams”: 32
},
{
“Id”: “3”,
“Material”: “Paper”,
“Grams”: 116
}
]
I would like to combine these lists by their common ID, and discard all un-matched items.
So that I end up with a list that looks like this:
[
{
“Id”: “1”,
“GTIN”: “1GTIN”,
“Color”: “Blue”,
“Material”: “Straw”,
“Grams”: 76
},
{
“Id”: “2”,
“GTIN”: “2GTIN”,
“Color”: “Green”,
“Material”: “Straw”,
“Grams”: 72
},
{
“Id”: “3”,
“GTIN”: “3GTIN”,
“Color”: “Magenta”,
“Material”: “Paper”,
“Grams”: 116
}
]
Thank you for helping out!