completeFileUpload(repositoryId, inputRep)

Once all parts are uploaded successfully, the process is finalized in Salesforce by invoking the completeFileUpload method. It returns an outputRep instance that indicates the completion status of the file.

  • repositoryId:

    Type: String

    The ID of the repository.

  • inputRep:

    Type: Map<String,ANY>

    Enter the input Representation instance created with ConnectApi.ContentHubUploadItemInputRepresentation();

  • Sample Code Snippet: