CData Python Connector for LinkedIn Marketing Solutions

Build 25.0.9454

UploadDocument

Uploads document assets, such as PDFs or whitepapers, to your LinkedIn organization so they can be attached to posts or used in sponsored content campaigns.

Procedure Specific Information

To use this stored procedure, exactly one of the following parameters must be specified (in addition to OwnerURN):

  • 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:

  1. The document's size can't exceed 100MB and 300 pages.
  2. The following formats are supported: PPT, PPTX, DOC, DOCX, and PDF.

Input

Name Type Required Description
OwnerURN String True Uniform Resource Name (URN) that identifies the account or organization that will own the uploaded document asset.
LocalFile String False Specifies the absolute local file path of the document to upload to LinkedIn.
FileData String False Contains the document data as a Base64-encoded string, used when neither LocalFile nor FileStream parameters can be provided.

Result Set Columns

Name Type Description
DocumentURN String URN that uniquely identifies the newly created document asset after a successful upload.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454