CreateDirectory

This activity helps the user to create a new folder (Directory) in the specified
path of the system.

Technical reference 

 

 

  

  INPUT

Name: Provide a name for the folder to be created within double quotes.

 

You have the option to either hardcode the values in the "String” variable or pass the values as “String” datatype.

 

This accepts only the “String” datatype.

Path: Specify the path where the folder needs to be created in double quotes or select it manually.  

 

You have the option to either hardcode the values in the "String” variable or pass the values as “String” datatype.

 

This accepts only the “String” datatype.

 

 

 

 

 

 

 

   MISC

Display Name: Displays the name of the activity. The activity name can be customized which will help in troubleshooting.

SkipOnError: Specify the Boolean value as “True or False.”
True: Continues to execute the workflow irrespective of any error thrown.
False: Stops the workflow if it throws any error.
None: If the option is specified as blank, by default the activity will perform the “False” action.

Version: It specifies the version of the FS automation feature in use

 

 

  OUTPUT

Result: It helps to view the execution state of the activity. It returns the values in Boolean format.
True: It indicates that the activity has been executed successfully without any error.
False: It indicates that the activity has been unsuccessful due to some unexceptional error thrown.

*Represents mandatory Fields to execute the workflow

Let’s see how the create directory works,

1.      Create a solution to build a workflow.

2.      Install the “FS Automation” from “Manage Features”.

3.      Drag and drop the “Create Directory” activity to the designer pane.

a.      Double click on the activity.

b.      Give a name for the directory to be created within double quotes
 in the name box. Here it is “DocFS.”

c.      Specify the path in which the folder has to be created in the path box. 

4.      To see the success state of the activity, declare a variable in the result box of the
 output section.

5.      Drag and drop a write log activity below the “Create Directory” activity and enter the
 above declared variable with the extension “.ToString” as the result is stored in
 “Boolean” datatype.

6.      Execute the workflow.

Click here to see how this activity works in a workflow.