Rename import files to the name of the file imported.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AgentT
    Member
    • Aug 2021
    • 77

    Rename import files to the name of the file imported.

    By default, all the imported files will be named as "import-file.csv" under Attachment entity. I need to override it such that the attachment name will be the same name as the imported file name.
    For example, if the imported file is called "Customer_Data_2021-08-30.csv" the attachment name should be "Customer_Data_2021-08-30.csv".

    This way its less confusing for the end user.

    Thank you! Cheers!
    @telecastg
  • Vadym
    Super Moderator
    • Jun 2021
    • 345

    #2
    Hi AgentT,

    You can implement this feature by coding.
    Path: /application/Espo/Services/Import.php

    Comment

    Working...