Hi, I’m trying to return the folder ID of a specific folder.
I know the parent folder ID but then want to return the folder relating to the current year within this folder. If the folder doesn’t exist I then need to create one.
How can I find a folder ID following a path. Due to the way folders are structured there are many folders with similar names but organised under sub-folder.
Eg, I have RootFolderID and want to find "RootFolderID\2022". If 2022 folder doesn’t exist then create folder.
Hi, sorry was a bit pre-emptive there. This works if the folder does not exist, but the if statement seems to still be creating folders even if a folder of the same name exists. Any ideas how to fix that? Thanks!