Determine if the current user has access to the Salesforce CRM Content features via the Partner API -
When using the Salesforce Partner API (version 21.0), how can I determine that the current user / session A new?
I can confirm content exchanges and presently the contents of the document are available as an object for the organization.
I can confirm using the current user session ContentVersion to be able to make that I have also confirmed that I am setting up the Content WRS record, to make the field (pathonclient, version Data and first published place idid).
In the case of my test, if user content field passes test case through salesforce web interface ContentVersion is being created.
However, when I try the same code from a developer version org (without access to the content area) it ends with the message:
FIELD_INTEGRITY_EXCEPTION - User does not have access to the saleable content. Invalid field value: Origin of the content
The ContentVersion Ready for Partners API metadata and fields indicate that this work should have been done.
I am working on C #, but in the recipe the Java code is doing a lot without constructive metadata checks.
In order to try to see my code as the cause of this problem, I have confirmed that Content Wars is the Force Com Explorer:
I have tried checking ContentDocument.creatable, but it is also wrong for users who otherwise might create content.
The reason is that ContentD is never creative, it supports only the following methods: delete (), query (), retrieve (), delete Cancel (), descriptionSObjects ()
To create a content document, you need to create a new ContentVersion object without setting ContentDocumentId.
From:
This automatically creates a parent document record when adding a new version of the document, you must specify an existing ContentDocumentId Starts. When the latest version is published, the title, owner and publishing field in the document is published.
ContentVersion.creatable should check for
Comments
Post a Comment