If a file gets modify then execute the action

Hello,

How can I set a rule to execute the action only and always when the file involved in the action gets modified?

Hello @jefersonbronze ,

  1. Just a quick idea, you can have a process running every minute or so (Orchestrator/task Scheduler).

  2. In your xaml file put some logic that to get the modified date (like modified in the last 1 or five minutes)

  3. You can get the file modified date with this I believe:
    File.GetLastWriteTime(path).ToString

  4. If the action above satisfy the rule you have, just continue with the logic that you want, for that specific file.

(This is related to the files from windows systems. If you have the file somewhere else, might be other steps.)

I hope it helps.

Vasile.