Share Item

Shares a file or folder with the specified recipients.

This activity shares a file or folder as DriveItem with the user-specified recipients using the Microsoft Graph Create sharing link and Add permissions APIs.

Input

  • Connection Id: GraphServiceClient Variable Required Specifies the office 365 connection id.

  • Drive Item: Object Argument Required Specifies the file or folder that is to be shared as a DriveItem. We can also specify the output variable of the Find Files And Folders activity (which is First or Results) directly as input in this property. If we are using the Results property of the Find Files And Folders activity then we can directly specify the element in the array. For example : Results[1].

  • Grantee Permission: Specifies the type of permission that is to be granted. The available options are View, Edit. By default the value is View.

  • Grantee Type: Specifies the type of recipients for which the permissions are granted. The available options are Anyone, PeopleInOrganization, SpecificPeople. By default the value is PeopleInOrganization.

Options

  • Expiration DateTime: String Argument Specifies expiration date-time of the permission given in DateTime format. The input should be given in double quotes. This is only available on premium personal OneDrive accounts. This is an optional property.

  • Password: String Argument Specifies the password for the sharing link. This property is optional.

The Expiration Date and Password properties are only required when the Grantee Type is set to Anyone.

Specific People

  • Message: String Argument Specifies a sharing invitation email as plain text.

  • Recipients: String Argument Specifies a list of recipients(email address) to receive access or a sharing invitation. Each of the recipient mail addresses should be separated by a semicolon.

  • Requires Sign In: Specifies whether it's required for the recipient to sign in for viewing the shared item. By default, the value is set to false.

  • Send Sharing Invitation Email: Specifies whether to send a sharing invitation mail to the user-specified recipients. By default, the value is set to false.

Output

  • Access Url: String Argument Required Specifies the web Url of the sharing link or of the drive item.

Last updated