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