Signature
global static void updateLinksSettings( List<Types.UpdateLinkSettingsInput> inputs, String runAs )
Parameters
| Parameter | Description | |
|---|---|---|
inputs |
required | One entry per link whose settings you want to update. Fields on Types.UpdateLinkSettingsInput: id, isActive, allowDownloading, requirePassword, password, allowedEmails, allowedDomains, enableEmailVerification. |
runAsString |
optional | Email Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser. |
Return Type
void
Example
cldfs.UpdateLinkSettings.FlowInput flowInput = new cldfs.UpdateLinkSettings.FlowInput(); flowInput.linkId = '68591442a9a65391d56b7caf'; flowInput.isDisabled = false; flowInput.allowDownloading = false; flowInput.password = 'password123'; cldfs.UpdateLinkSettings.execute(new List<cldfs.UpdateLinkSettings.FlowInput>{flowInput});
Example uses the invocable formThe signature above documents the
cldfs.Client.updateLinksSettings(List<Types.UpdateLinkSettingsInput>, String) method. The example instead calls the invocable class cldfs.UpdateLinkSettings.execute(List<FlowInput>), whose FlowInput uses different field names (linkId, isDisabled, allowDownloading, password) than Types.UpdateLinkSettingsInput (id, isActive, allowDownloading, requirePassword, password, allowedEmails, allowedDomains, enableEmailVerification). Map fields accordingly when calling the Client method.