UploadDocument
Upload document assets in your LinkedIn organization which can be used to create posts and ads.
Procedure Specific Information
To use this stored procedure, exactly one of the following parameters must be specified (besides the ones reported in the table below as Required):- LocalFile
- FileStream
- FileData
If no parameter is used, or more than one parameter is used, the procedure will fail.
Below are some other restrictions for document assets:
- The document's size can't exceed 100MB and 300 pages.
- The following formats are supported: PPT, PPTX, DOC, DOCX, and PDF.
Input
| Name | Type | Required | Description |
| OwnerURN | String | True | The URN of the account or organization to use as the new document's owner. |
| LocalFile | String | False | The absolute path of the document in your system to upload to LinkedIn. |
| FileData | String | False | A Base64-encoded string containing the data of the document to upload to LinkedIn. Useful in cases when neither the 'LocalFile' parameter nor the 'FileStream' parameter are viable options. |
Result Set Columns
| Name | Type | Description |
| DocumentURN | String | The URN of the new document asset that was created, if the upload was successful. |