Currently, I have a file transfer and file import activity in my Automation. As part of this automation, I need to get the file name and number of records in the file for Audit purpose. Based on my research I see BASEFILENAME_FROM_TRIGGER
could provide filename, but I am getting null value from it.
<script type="text/javascript" runat="server">
Platform.Load("Core","1.1.1");
var automationCustomerKey = "31e9a62f-02f5-123-9337-0e4xyz-2f0bcc"
var uploadedFileName = Variable.GetValue('BASEFILENAME_FROM_TRIGGER');
var logDE = 'Log_DE';
DataExtension.Init(logDE).Rows.Add({"File_Name":uploadedFileName, "No_of_records": "2", "File_received_on_Date": "05-12-2023" });
</script>