Hi friends
how could i create today folder from type into activities i tried both of use datetime.tostring directly in type into text and use assign activities but both are error and said folder path doesnt exist how could i fix this ?


Hi friends
how could i create today folder from type into activities i tried both of use datetime.tostring directly in type into text and use assign activities but both are error and said folder path doesnt exist how could i fix this ?


Why are you using Type Into for creating folder when you have Create folder activity?
Use this snippet in assign activity to build a file path.
Path.Combine("your base folder path", Now.ToString("dd.MM.yyyy"),"Filename")
We first need to create a folder in directory before we save anything in that folder.
You can use create folder activity as shown by @ashokkarale in last comment.
Also, to verify first use activity File exist and choose Folder as an option. This activity will give you Boolean output true or false based on is folder exist in directory or not.
First create the folder using create folder activity where you would pass the full path plus the date folder you need… one thing here is to avoid using dots in folder name…
Use path.Combine("Path",Now.ToString("MMddyyyy")) this will create the path proeprly
then use type into to save the file into that folder
cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.