Skip to main content
Solved

Dynamically expose lists

  • June 4, 2025
  • 2 replies
  • 83 views

michaels
Contributor
Forum|alt.badge.img+5

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+64
  • 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
Celebrity
  • 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.