Announcements
When i try to delete the file by selecting the file from the folder it works fine
but when i try to use a variable(with a path in it) it doesnot work and throws an error
i want to make it dynamic,thanks
@Sami3
Please follow the below approach:
Thanks,Deenuji Loganathan 👩💻Automation Evangelist 🤖Follow me on LinkedIn 👥 -------------------------------------------------------------------------------------------------------------If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀
I think that connector requires actually the file Id. Its bit confusing since when you pick the file manually it just shows the file path.
So you want to first use "List files in folder" OneDrive action. Then that lists the files and folders.It has .Id property in the List of Connector objects
You need to use that in your variable that you use in the Delete file action "File name" field.
So you need to build bit of extra logic so you select the correct file id.Something like this:
List files in folder lists all files in the selected folder.For each loops those filesIf checks if current loops file name is same as %FileName% -variable (test.txt) If it is then it sets loops file id to %FileId% -variableDelete file action uses %FileId% -variable.
@eetuRobo
This is how most Microsoft cloud packages work in PAD. You can't achieve everything in a straightforward manner as per their documentation, and it always requires some workaround to make it work 🙂
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 474
11manish 268
David_MA 243 Super User 2026 Season 1