Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4240372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:09:22+00:00 2026-05-21T03:09:22+00:00

When using the Salesforce Partner API (version 21.0), how can I determine if the

  • 0

When using the Salesforce Partner API (version 21.0), how can I determine if the current user/session is able to create a new Content Version?

Using describeGlobal() I can confirm ContentVersion and ContentDocument are available as objects for the current organization.

Using describeSObject() I can confirm that the the current users session marks ContentVersion as createable.
I’ve also confirmed that the fields I’m setting when inserting the ContentVersion record are marked as createable (PathOnClient, VersionData and FirstPublishedLocationId).

In my test cases, if the user has access to the Content area via the Salesforce web interface then the test case passes with the ContentVersion being created.

However, when I try the same code from a developer edition org (without access to the Content area) it falls over with the message:

FIELD_INTEGRITY_EXCEPTION – User doesn’t have access to Salesforce Content. Invalid field value:: Content Origin

The createable Partner API metadata for ContentVersion and the fields indicated that this should have worked.

I’m working in C#, but the Java code in recipe Publishing Documents Into a Salesforce CRM Content Personal Workspace is doing much the same thing without the creatable metadata checks.

To try and rule out my code as the cause of the issue I’ve confirmed that the ContentVersion should be createable using Force.com Explorer:

Force.com Explorer showing attributes for ContentVersion

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:09:22+00:00Added an answer on May 21, 2026 at 3:09 am

    I think I’ve figured it out. Checking that ContentVersion is creatable alone is not sufficient.

    I also needed to check that the current user (as indicated by getUserInfo()) has the field UserPermissionsSFContentUser and that it is true.

    From the Web Services API Developer’s Guide for User.UserPermissionsSFContentUser.

    Indicates whether the user is allocated one Salesforce CRM Content User License (true) or not (false). Label is Salesforce CRM User. The Salesforce CRM Content User license grants the user access to the Salesforce CRM Content application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In salesforce custom links, a user can reference the salesforce session ID by using
I am new to using the salesforce api. I have downloaded the saleforce/php toolkit
I am using Salesforce api and i want to login automatically(hard code user name
It seems I can communicate with Salesforce Metadata API just using SOAP python client
I'm using the Salesforce REST API to create a Case. I assign the SuppliedEmail
I'm attempting to Create a Job and Add a Batch using the Salesforce Bulk
using the salesforce Email Services can we do means prevent duplicate cases and How
I am successfully creating a Task using the SalesForce API SOAP API through Java.
When using the SOAP API to work with salesforce.com (SFDC) it seems that the
I'm using the rforce gem to create records in my salesforce database. The example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.