Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Anything like Javascript eval() function

Avatar

Level 3

Hello,

 

I'm trying to parse JSON coming in from an Iterator but the name of the JSON element could change names.  For instance, different custom field names.

Much like the eval() function in Javascript, I want Fusion to be able to read a name dynamically.

 

I've attached some screenshots to help me desribe the exact scenario.

I have the name of a Role in the 1st_Module and I'm looking up a Custom field with that same Role Name.

That does return JSON data, which I'm trying to parse in the 2nd_Module.
However, the Role Name will change with different assigned Tasks.
Is there a way to dynamically set up the 2nd_Module to accomplish this.  You can see from the 2nd_Module.png file what I've tried, but doesn't work. 
At time of the scenario running, Fusion errors with not valid JSON.  I'm trying to type in a string that points to the JSON element.  So I need Fusion to eval() the string.

I hope that makes sense of what I'm trying to accomplish.
Thanks for any ideas,
Kelly

2 Replies

Avatar

Community Advisor

Can you use the get/pick() function? 

also - try to first set a variable to {{28.`DE:....} that would be the "eval" step  

 

 

Avatar

Administrator

@Kelly_StarzEnt Just checking in — were you able to resolve your issue? We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!



Kautuk Sahni