How to Save Reports in Folders per Year, Month and Day

Document created by Albarus on May 8, 2013
Version 1Show Document
  • View in full screen mode

If someone wish to sort scheduled Reports by Year, Month and Day - here is the Syntax:


Archive Report Name:

#set( $cyear=${CurrentMonth} )$cyear.substring(3) = Year

#set( $cmnth=${CurrentMonth} )$cmnth.substring(0,2) = Month

#set( $cday=${Today} )$cday.substring(3,5) = Day


Complete Example with the Structure: /2013/05/28/NameofReport_05-08-2013-14:00:00.pdf


#set( $cyear=${CurrentMonth} )$cyear.substring(3)/#set( $cmnth=${CurrentMonth} )$cmnth.substring(0,2)/#set( $cday=${Today} )$cday.substring(3,5)/${ReportName}_${Now}

1 person found this helpful