How to out put BRD or Excel file its name with brainscript custom date parameters?

Comments

1 comment

  • Avatar
    Stony Smith

    At this time, neither LAE nor Dataverse support using expressions to create file names.

    My common solution for this is to write out the file with some name like MyExcel_Temp.xlsx
    and then use moveFile(oldname,newname) in a filter node to rename the file.

    [code]
    oldname="MyExcel_Temp.xlsx"
    newname="MyExcel_"+year(date()).str() + "-" + month(date()).str()+".xlsx"
    moveFile(oldname,newname)
    [/code]

    0
    Comment actions Permalink

Please sign in to leave a comment.



Powered by Zendesk