Make Azure Logic App SFTP trigger "forget" the files it has already seen

David Deutsch 0 Reputation points
2024-03-07T18:23:17.01+00:00

I have an SFTP trigger in a Logic App that has already "seen" all of the files on the SFTP server, so when I try to run the trigger, it gets skipped (because there are no new files). Is there any way to make the trigger "forget" the files it has already seen so that next time I run the trigger, it gets fired for every file that exists on the server? I assume the trigger stores its state somewhere (e.g. timestamp of last trigger or whatever), so if I could clear that state it would do the trick.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,786 Reputation points Microsoft Employee
    2024-03-20T05:29:05.4+00:00

    Hi @David Deutsch - Thanks for reaching out, and engaging the MS Q&A community.

    If you're using Logic Apps Standard, you might be able to locate the state history in the storage you connected. However, even if the state history is located and successfully cleared manually, there may be other, indirect consequences so I wouldn't really recommend going this route though. If all you need is the list of all files, why not use the List files in folder or the List files in root folder actions?

    0 comments No comments