How to get imported file name
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
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
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