Skip to content
+1-888-319-3663

COMMUNITY FORUM

How to get imported file name

Mike asked 9 years ago
I have a SmartConnect map that is defined as using the Folder Data Source and I am trying to figure out how to get the file name of the file that is being processed in the pre map event.  What I have found requires the file name to be in the file.  What I'm trying to use is the actual file name that is being imported.  Can anyone point me in the right direction? 
Answers
Best Answer
Ruaan Jonker answered 9 years ago
Hi Mike

SmartConnect loads all records from all files into one big data table then processes the records. So it wont be able to tell you what file is currently running.

You can get all the file names in the folder by using something like this:
msdn.microsoft.com/en-au/library/wz42302f.aspx

But this still won't help in telling you which file is running at that point.

Regards,
Ruaan Jonker

If you would like to submit an answer or comment, please sign in to the eOne portal.