Skip to main content
Level 3
Nov 4, 2024 6:33 PM UTC
Solved

Setting metadata properties dynamically

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. 

 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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sven-iX
Sven-iXAccepted solution
Community Advisor
Nov 5, 2024 12:07 AM UTC

hi @aembee 

 

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

 

 

1 reply

Sven-iX
Community Advisor
Sven-iXCommunity AdvisorAccepted solution
Community Advisor
Nov 5, 2024 12:07 AM UTC

hi @aembee 

 

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

 

 

Translate