Skip to main content

Share File

AutomatR.GoogleDrive.Activities.ShareFile

The "Share File" activity in AutomatR is part of the Google Drive activities package, allowing automation processes to share files with intended recipients within the Google Drive user's account. This activity streamlines the process of sharing files, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
File NameSpecifies the full path of the file to be shared on Google Drive. It should include the file name and path within Google Drive (e.g., "Root\myFolder\1.xlsx"). String variables containing the file name.
Share With Email AddressSpecifies the email address to which the Google Drive file should be shared. String variables containing the email address of the intended recipient.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Share File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1.
Output
ResultOutputs the result of the "Share File" operation, indicating whether the file sharing was successful or encountered any errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Share File" activity onto the workflow.
  2. Configure the properties by specifying the file name and the email address of the intended recipient on Google Drive.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to share the specified file on Google Drive.

Example: Consider an example where the "Share File" activity is used to share a file named "1.xlsx" from a folder within Google Drive with the email address "user@example.com":

Share File:
Display Name: "Share Excel File"
File Name: "Root\\myFolder\\1.xlsx"
Share With Email Address: "user@example.com"
Result: isShareSuccessful

In this example, the activity shares the "1.xlsx" file with the email address "user@example.com" on Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isShareSuccessful" for further handling in the workflow.