Standard UiPath activities accept relative paths, but the same isn’t true for custom activities.
For e.g. Suppose I have a folder named “Temp” in my project directory. I now use the UiPath activity “Path Exists” and set the Path Type to Folder. For the Path input parameter, I provide “Temp”. If a folder already exists called “Temp”, it returns true. Or else, it returns false.
I have created a custom activity called Ensure Folder to check if a particular folder path exists and create it if it doesn’t exist. I published this custom activity using a library. When I then run the custom activity and provide “Temp” as the input path, it creates the folder inside the .Nuget packages folder, where the custom activity’s .DLL file is located:
Why does this happen? How can I set a custom activity to also accept relative filepaths like a standard UiPath activity?