Want to rename producer filename while routing to consumer inbox? Custom facts in Routing Templates help you
Krishna Kishore Konda 270006M7XS Visits (3182)
If you are using Sterling File Gateway to route files between users and ever wanted to rename file in consumer Inbox? So this article is for you.
I want to cover "Custom facts" in Routing Channel Template along with an example. Custom facts help you to rename files while routing from producer to consumer Inbox. Screen-print below shows where these custom facts can be configured.
You have to be familiar with Regular Expressions to use custom facts to the fullest extent.
Consider a requirement where producer sends the file <Fil
First split Producer Filename using a regular expression "(.+
Please note these custom fact names must be prefixed with "my".
Consumer File Structure looks like this -
Here is the complete Routing Channel Template -
I setup a channel between producer "kkprod" and consumer "kkcons". producer uploaded a file.
Arrived File Events and Delivery Events look as below -