Anything like Javascript eval() function | Community
Skip to main content
New Participant
April 30, 2025

Anything like Javascript eval() function

  • April 30, 2025
  • 2 replies
  • 405 views

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

kautuk_sahni
Employee
July 29, 2025

@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
Sven-iX
New Participant
May 9, 2025

Can you use the get/pick() function? 

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