PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/12/2021 10:21 AM by  Utsav
Deleting Archive folder after certain time
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Utsav
Computer Programmer
Tift Regional Health System
New Member
(5 points)
New Member
Posts:3


Send Message:

--
01/08/2021 11:41 AM

    Hello ,

               I have a flow in Infor IPD and is creating output files at the end. I have already created a archive path where output files are stored. Also i wanted to create a feature on that archive folder to delete all files after 30 days. is this possible in IPD ?  Suggestions would be appreciated.

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (1205 points)
    Veteran Member
    Posts:419


    Send Message:

    --
    01/08/2021 12:04 PM
    Not the most elegant solution, but this is how I handled it -
    1. assumes that files are saved with a date stamp yyyymmdd in the archive folder
    2. FileAccess - List Files - for all files in the archive folder
    3. DataIterator to process list from #2
    4. Javascript to parse date from file_name and compare it to a certain date (-30 in your case)
    5. FileAccess - Delete the file if it satisfies condition #4
    Utsav
    Computer Programmer
    Tift Regional Health System
    New Member
    (5 points)
    New Member
    Posts:3


    Send Message:

    --
    01/12/2021 10:21 AM

    Thanks Ragu!! Appreciate for your comments and suggestions on this topic. 

    You are not authorized to post a reply.