โ12-14-2021 06:49 AM
Hello,
I am trying to get a value from te snaplogic metadata from pipelines. I have done a snaplogic read and it gives all the metadata from the pipelines. But the value that i am trying to get is inside a dynamique key.
Each pipeline has an object snap_map and in that snap map there are all objects with unique keys. In those Ids is the value:
โsnap_map.[*].property_map.account.account_ref.value.label.valueโ
input:
[{โsnapmapโ:{
โa1โ : โtest1โ,
โa2โ : โtest2โ
}},
{โsnapmapโ:{
โa3โ : โtest3โ,
โa4โ : โtest4โ,
โa5โ : โtest5โ}}]
Expected Output:
{test1,test2,test3}
Regards
Jens
Solved! Go to Solution.
โ12-14-2021 07:11 AM
Try with values object function.
The function will returns you an array containing the given objectโs values.
ex: $snapmap.values()
Regards,
Spiro
โ12-14-2021 07:11 AM
Try with values object function.
The function will returns you an array containing the given objectโs values.
ex: $snapmap.values()
Regards,
Spiro
โ12-14-2021 07:22 AM
Thank you a lot Spiro it works