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.
Methods
global static List<FlowActionPayload_String> createSharingLink(List<createSharingLinkInput> linkItems)
INVOCABLEMETHOD
Classes
createSharingLinkInput
Fields
global DocumentLibraryOverrideId
→ String
AURAENABLED
OTHER
(Optional) Override the Document Library Id in the SharePoint Object Setting.
global LinkExpiration
→ DateTime
AURAENABLED
OTHER
(Optional) Set a date and time for when the sharing link will expire; By default, the link will not expire.
global LinkPassword
→ String
AURAENABLED
OTHER
(Optional) Set a password for the sharing link; By default, the link will require a password.
global LinkRecipients
→ List<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 LinkScope
→ String
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 LinkType
→ String
AURAENABLED
OTHER
(Optional) The type of sharing link to create (“view” or “edit”); Defaults to “view”.
global ObjectSettingsLabel
→ String
AURAENABLED
INVOCABLEVARIABLE
The label of the SharePoint Object Setting Custom Metadata used to complete the action.
global SharePointFolderId
→ String
AURAENABLED
INVOCABLEVARIABLE
The SharePoint Id of the file or folder you want to share.
global SiteOverrideId
→ String
AURAENABLED
OTHER
(Optional) Override the Site Id set in the SharePoint Object Setting.