activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 6, 2024

ShareFile

Shares a file.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Overloads

OverloadDescription
ShareFile(IFile, GranteePermission)Shares a file with people in organization.
ShareFile(IFile, String, Nullable<DateTime>, GranteePermission)Shares a file with anyone.
ShareFile(IFile, IEnumerable<String>, String, Boolean, Boolean, GranteePermission)Shares a file with specific people.

ShareFile(IFile, GranteePermission)

Shares a file with people in organization.
string ShareFile(
	IFile file,
	GranteePermission permission = GranteePermission.View
)string ShareFile(
	IFile file,
	GranteePermission permission = GranteePermission.View
)
file IFile
The file to share.
permission GranteePermission (Optional)
The type of permission that will be granted.

ShareFile(IFile, String, Nullable<DateTime>, GranteePermission)

Shares a file with anyone.
string ShareFile(
	IFile file,
	string passwordForSharingLink = null,
	DateTime? expirationDate = null,
	GranteePermission permission = GranteePermission.View
)string ShareFile(
	IFile file,
	string passwordForSharingLink = null,
	DateTime? expirationDate = null,
	GranteePermission permission = GranteePermission.View
)
file IFile
The file to share.
passwordForSharingLink String (Optional)
An optional password of the sharing link. Available on premium personal OneDrive accounts.
expirationDate Nullable<DateTime> (Optional)
An optional expiration date time of the permission. Available on premium personal OneDrive accounts.
permission GranteePermission (Optional)
The type of permission that will be granted.

ShareFile(IFile, IEnumerable<String>, String, Boolean, Boolean, GranteePermission)

Shares a file with specific people.
string ShareFile(
	IFile file,
	IEnumerable<string> recipients,
	string message = null,
	bool sendSharingInvitationEmail = true,
	bool requiresSignIn = false,
	GranteePermission permission = GranteePermission.View
)string ShareFile(
	IFile file,
	IEnumerable<string> recipients,
	string message = null,
	bool sendSharingInvitationEmail = true,
	bool requiresSignIn = false,
	GranteePermission permission = GranteePermission.View
)
file IFile
The file to share.
recipients IEnumerable<String>
The email addresses of recipients to receive access and, optionally, a sharing invitation.
message String (Optional)
A plain text to include in the sharing invitation email.
sendSharingInvitationEmail Boolean (Optional)
Specifies whether to send a sharing invitation email to the recipients.
requiresSignIn Boolean (Optional)
Specifies whether the recipient is required to sign-in to view the shared file.
permission GranteePermission (Optional)
The type of permission that will be granted.

Return value

String - The web URL of the sharing link.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.