Invocable Apex classThis is an invocable Apex class, not a
Client method. Call it as cldfs.CreateContentDocumentLink.execute(inputs), passing a list of cldfs.CreateContentDocumentLink.FlowInput.Signature
global static List<ContentDocumentLink> execute( List<CreateContentDocumentLink.FlowInput> inputs )
Parameters
| Parameter | Description | |
|---|---|---|
inputsList<CreateContentDocumentLink.FlowInput> |
required | One entry per file to link. Each FlowInput carries: externalDataSourceName (External Data Source Name), name (Name), salesforceObjectId (Salesforce Object Id), and fileConnectResourceId (File Connect Resource Id). |
Return Type
List<ContentDocumentLink> — one per created Files Connect file.
Example
cldfs.CreateContentDocumentLink.FlowInput input = new cldfs.CreateContentDocumentLink.FlowInput(); input.externalDataSourceName = 'xyz12345'; input.name = 'x1234x'; input.salesforceObjectId = '0016hxxxxxxxxxx'; input.fileConnectResourceId = '01KEHAKUVATUH5R5QRKJBLR3ITM3E6VCXN'; List<ContentDocumentLink> links = cldfs.CreateContentDocumentLink.execute(new list<cldfs.CreateContentDocumentLink.FlowInput>{input});