Setting FileName without using Orchestration

Hello All,

I have a requirement where, the file name should be ABC_yyyyMMddHHmmss.So I am using, Message Assignment shape in the orchestration

Message(FILE.ReceivedFileName) = "ABC_" + System.DateTime.Now.ToString("yyyyMMddHHmmss");

Is there any way of doing without orchestration. I tried using the %datetime_bts2000% but that has YYYYMMDDhhmmsss, where sss means seconds and milliseconds. I dont need milliseconds in the filename. Thanks


  • Edited by vdha Tuesday, February 24, 2015 3:56 PM
February 24th, 2015 6:54pm

Yes, but you would have to create a custom Pipeline Component.

There is nothing wrong with using an Orchestration.  Don't even think about 'performance' unless you can prove it's an issue.

The code you have will produce a time stamp with precision in seconds.  You don't have to do anything.

  • Marked as answer by vdha Tuesday, February 24, 2015 5:50 PM
Free Windows Admin Tool Kit Click here and download it now
February 24th, 2015 7:07pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics