Preserving the inbound filename for output file
In our edi process we have a file event that picks up 837 x12 files and converts them to a xml file. Our file event's File Include Criteria is emdeonInstitutional*.txt. The xml output filename is defined in the the inbound relationship. We name our xml output files EmdeonInstitutional.xml with a timestamp. What we would like to do is preserve the name of the file we read for the File event - in this case emdeonInstitutional*.txt and use the file name as the name for the xml output file. for example
input file name is emdeonInstitutiona99999.txt where 99999 is a process id. We somehow pass the filename emdeonInstitutiona99999.txt to the inboundRelationship file name so the xml output file would be called emdeonInstitutiona99999.xml. In other words, we would like to what input file goes with what output file. Is this possible?
-
It seems that you want to pass the source File Name to the target. If that's the case then below is the solution for you:
The input file name is stored in context variable "baseInputFileName" and this variable can be used to get the source file name directly.
If you want the target file name same as the source file name then you need to use $$baseInputFileName$$ as file name while defining the File name in the Inbound relationship.0
Post is closed for comments.
Comments
1 comment