Skip to main content
Solved

Dynamically expose lists


michaels
Contributor
Forum|alt.badge.img+4

I have a problem. I've built a workbench that allows me to dynamically pull in various data sources. This also pulls in lists, depending on the situation. But FME doesn't know anything about these lists. How can I expose them dynamically? I have an attribute that contains the list name.
 



At the end I have to explode the list, edit it and reassemble it with the same name.

Thanks for your support

Michael

Best answer by takashi

Hi ​@michaels ,

I don’t think there is any way to automatically expose the list name which is determined at run-time, unfortunately.

However, if the goal is to explode the list and the list name is provided as an attribute value ("@Value(_substring)" in your case), you can rename the dynamic list to a fixed name (“_list” for example) with BulkAttributeRenamer (Mode: Regular Expression Replace), expose “_list{}” with AttributeExposer, and explode the list with ListExploder. See also the screenshot below.

Just be aware that you may have to expose the attribute names (nDynamicTitleResolved, uuid, etc.), after exploding the list.

Hope this helps.

View original
Did this help you find an answer to your question?

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • June 4, 2025

Unfortunately you can’t expose them dynamically. You can deal with them dynamically in Python 
 


One way, you could dynamically rename them in Python to a known exposed list, then explode them out.
 

Can you expand a bit more on what you’re trying to achieve? That may help get a more detailed answer


takashi
Influencer
  • Best Answer
  • June 4, 2025

Hi ​@michaels ,

I don’t think there is any way to automatically expose the list name which is determined at run-time, unfortunately.

However, if the goal is to explode the list and the list name is provided as an attribute value ("@Value(_substring)" in your case), you can rename the dynamic list to a fixed name (“_list” for example) with BulkAttributeRenamer (Mode: Regular Expression Replace), expose “_list{}” with AttributeExposer, and explode the list with ListExploder. See also the screenshot below.

Just be aware that you may have to expose the attribute names (nDynamicTitleResolved, uuid, etc.), after exploding the list.

Hope this helps.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings