Add SharePoint file
This custom SharePoint workflow activity is designed to add a new file to a specified folder within a SharePoint library. It requires essential parameters such as the connector for the SharePoint library and the destination path. Additionally, it supports optional parameters such as content and file name, which can be provided if needed but are not mandatory.
Required parameters:
- Connector - The connector used to perform the update operation on the SharePoint library. This connector handles the communication between the workflow and the SharePoint library. Ensure the correct connector is specified to enable a successful connection to the SharePoint library.
- Destination Path The server-relative path to the folder within the SharePoint library where the new file will be added.
Optional parameters:
- Content The actual content of the file to be uploaded. If this is not provided, the activity will create a blank file or placeholder at the specified destination. Use this parameter to specify the content of the file.
- Name The name of the new file being added to the library. The name should end with a proper file extension (for example: document.pdf, file.txt). If not provided, the file may be named automatically or by a predefined convention. However, providing the file name ensures that the file is named as desired.
- Override This field is of checkbox type. If this field is checked it will try to replace any file with the same name with a new copy.
In addition to input parametres you can also select the output parameters by entering the desired value in the added file field. This is not required for the activity to run properly.
File Creation: The activity creates a new file in the specified folder at the given destination path. If the content is provided, it will populate the file with the given data; otherwise, the file will be empty. If a name is provided, the file will be saved under that name. If the name is not provided, the system will follow its naming convention or create a blank file.