FlowAction_CreateSharingLink

This method mimics the sFiles API method, “createSharingLink”. It assumes that the named credential to use is to be found in the “SharePoint Object Settings” Custom Metadata type (of the objectSettingsLabel if one is specified) or the “SharePoint Settings” Custom Metadata type. The Site Id and Document Library Id are assumed to come from the SharePoint Object Settings or SharePoint Settings, but can be overriden by the siteId and documentLibraryId parameters.

See createSharingLinkInput

Methods

global static List<FlowActionPayload_String> createSharingLink(List<createSharingLinkInput> linkItems)

INVOCABLEMETHOD

Classes

createSharingLinkInput

Fields

global DocumentLibraryOverrideIdString

AURAENABLED OTHER

(Optional) Override the Document Library Id in the SharePoint Object Setting.

global LinkExpirationDateTime

AURAENABLED OTHER

(Optional) Set a date and time for when the sharing link will expire; By default, the link will not expire.

global LinkPasswordString

AURAENABLED OTHER

(Optional) Set a password for the sharing link; By default, the link will require a password.

global LinkRecipientsList<String>

AURAENABLED OTHER

(Optional) If the scope is set to “users”, provide a collection of text variables of all the email addresses of desired users you would like to grant access to the sharing link.

global LinkScopeString

AURAENABLED OTHER

(Optional) Accepted values are “anonymous”, “organization”, or “users”. “anonymous” allows anyone with link to access without signing in. “organization” allows only those signed into your tenant to use the link. “users” will only share the link with individual recipients and requires that the “link recipients” parameter of the flow action is populated.

global LinkTypeString

AURAENABLED OTHER

(Optional) The type of sharing link to create (“view” or “edit”); Defaults to “view”.

global ObjectSettingsLabelString

AURAENABLED INVOCABLEVARIABLE

The label of the SharePoint Object Setting Custom Metadata used to complete the action.

global SharePointFolderIdString

AURAENABLED INVOCABLEVARIABLE

The SharePoint Id of the file or folder you want to share.

global SiteOverrideIdString

AURAENABLED OTHER

(Optional) Override the Site Id set in the SharePoint Object Setting.