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