Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
SOLVED

Setting metadata properties dynamically

Avatar

Level 2

I'm working on a fusion scenario where I am setting the metadata properties to my custom component dynamically. Below is the high level structure of a single collection of JSON data. 

Screenshot 2024-11-04 at 1.18.21 PM.png

 I need to get properties from myContentAttributes collection and create a structure like this:

"mycustomComponent": {
"item0": {
       "propName": "propA",
       "propValue": "valA"
},
"item1": {
       "propName": "propB",
       "propValue": "valB"
},
"item2": {
     "propName": "propC",
     "propValue": "valC"
},
.......
}

I am able to get the property names by iterating through keys of myContentAttributes but not sure how to get the values of corresponding properties. 
Thank you in advance!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6

hi @aembee 

 

to get the value of the respective key, get( myContentAttributes ; {{iterator value}} )

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

hi @aembee 

 

to get the value of the respective key, get( myContentAttributes ; {{iterator value}} )