This guide will show you how to use the Engini On-Prem Agent to securely manage files stored in your local environment. You’ll learn how to perform operations such as retrieving, creating, renaming, and organizing files. By following this guide, you’ll be able to seamlessly integrate your on-premises file systems into Engini workflows, enabling efficient and secure file management without compromising your corporate firewall.
Set Up On Prem Agent #
Before managing files with the Engini On-Prem Agent, you need to complete the setup process. This includes the following steps:
- Add an Agent to your account.
- Download and Install the Agent on your local system.
- Test the Agent Connection to ensure it’s working correctly.
- Add Your On-Prem Agent to the file management connection.
If you’re unsure how to complete these steps, please refer to the On prem Agents guide. Once the setup is complete, you can proceed to manage files securely.
Add a connection to On Prem File in Engini #
- Enter your Engini account at https://app.engini.io.
- Navigate to Connections page by clicking on the Connections on the left sidebar or by clicking here.
- Click on the Add connection option located at the topbar.
- Choose On-Prem Files option from the available applications.
- Enter the following details in the “Add Connection” form:
- Connection name – A required field where you provide a unique name for the connection.
- Directory – The base folder path for file access. This is the root directory where the agent will operate. Paths specified in workflows will be relative to this base directory.
For example: C:\Shared\Files. - On-prem Agent – A dropdown menu where you select the desired On-Prem Agent for this connection. This agent must already be configured and available for selection.
- Click on the save button to save the connection.
Activities #
Create File #
This activity creates a new file in the specified path and populates it with provided content.
File Path – Specify the relative file path. This is where the file will be created.
File Content – Provide the content to be written into the file. Ensure the content is in Base64 format. You can use the StringToBase64 function available in Engini to convert your string into Base64 format.
Keep connection alive until complete -If checked, the system ensures the connection to the agent remains active throughout the file creation process.
Delete File #
This activity deletes a file from the specified location.
File Path – Provide the relative file path of the file you want to delete.
Keep connection alive until complete – If checked, the connection to the agent is maintained until the deletion is successfully completed.
Get File #
This activity retrieves the content of a specific file.
File Path – Specify the relative file path of the file you want to retrieve.
Keep connection alive until complete – If checked, the system keeps the connection to the agent open during the retrieval process.
Get Files #
This activity lists all files in a specific folder, with optional filtering.
- Folder– Specify the folder path relative to the base path to list files from.
- Fields –
- Include files in sub folders – Select whether to include files in sub-folders (True/False).
- Naming Pattern – Optionally filter files by name or extension. For example: *.docx , *.txt .
- Keep connection alive until complete – If checked, ensures the connection remains active while fetching file details.
Move File #
This activity moves a file from its current location to a new destination.
- File Path – Specify the relative path of the file to be moved.
- Destination Folder Path – Provide the relative destination folder path where the file will be moved.
- Keep connection alive until complete: If checked, the connection remains open to complete the move operation without interruptions.
Rename File #
This activity renames an existing file to a new name.
- File Path – Provide the relative path of the file to be renamed.
- New File Name- Enter the new name for the file.
- Keep connection alive until complete-If checked, the system maintains the connection to the agent throughout the renaming process to ensure completion.
Create Folder #
This activity creates a new folder in the specified path.
- Folder Name – Provide the name of the folder to be created. The path is relative to the base path.
- Keep connection alive until complete-If checked, the system maintains the connection to the agent throughout the renaming process to ensure completion.
Delete Folder #
This activity deletes an existing folder, including all its contents.
- Folder Name – Specify the name of the folder to delete. The path should be relative to the base path.
- Keep connection alive until complete– If checked, the connection to the agent is maintained until the folder deletion process is successfully completed.
Get Folders #
This activity retrieves a list of folders from a specified directory, with options to include subfolders and apply filters.
- Folder – Provide the folder path relative to the base path to list folders from.
- Fields –
- Include Files in Sub folders – Select True to include folders from subdirectories or False to limit results to the main directory.
- Naming Pattern – Use filters to retrieve specific folders based on naming patterns (e.g., Folder* for names starting with “Folder”).
- Keep connection alive until complete – If checked, ensures the connection to the agent remains active during the folder retrieval process, especially for large directories or complex filters.