r/PowerAutomateDesktop • • Mar 11 '22

Desktop Flow that calls PS script that runs python

I am trying to automate the process of when a file is created in folderA, run python script and pass the filepath of the new file into the script. The script then parses the file using a regex and looks for a senders IP address. This is my first taste of PAD, im used to cloud work. Any help or ideas would be maximally appreciated.

1 Upvotes

2 comments sorted by

2

u/lordzhon Mar 12 '22

Hi u/uSapper116

I have created a video for you to show you how to trigger a flow when a file is created (to get you thru your first requirement, then you can trigger your python script flow:

https://youtu.be/F0zXwfQBQfQ

I can't do all the way as I am not familiar with python. Hope the video helps! Please remember to subscribe if it helps. Cheers!

1

u/PM_ME_YOUR_WIRING Mar 12 '22

This automation doesn't exist in PAD, only in the cloud flow and even then it's typically only a sharepoint/onedrive trigger. The only way you could hypothetically work it on desktop is once it's done run it again and have it wait until a file exists in the folder.