Setting metadata properties dynamically | Community
Skip to main content
Level 3
November 4, 2024
Solved

Setting metadata properties dynamically

  • November 4, 2024
  • 1 reply
  • 383 views

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.
Best answer by Sven-iX

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
November 5, 2024

hi @aembee 

 

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