cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Mapping question dynamique values metadata snaplogic

JensDeveloper
Contributor II

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โ€}}]
image

Expected Output:
{test1,test2,test3}

Regards

Jens

1 ACCEPTED SOLUTION

SpiroTaleski
Valued Contributor

@JensDeveloper

Try with values object function.

The function will returns you an array containing the given objectโ€™s values.

ex: $snapmap.values()

Regards,
Spiro

View solution in original post

2 REPLIES 2

SpiroTaleski
Valued Contributor

@JensDeveloper

Try with values object function.

The function will returns you an array containing the given objectโ€™s values.

ex: $snapmap.values()

Regards,
Spiro

Thank you a lot Spiro it works