function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bhushan_27Bhushan_27 

Accessing Suggested tags(Restricted Tagging)

 

Hi,

 

I need to access Suggested tags(Restricted Tags) and dispaly it on my vf page, so that user will enter only those tags not random tags while uploading a content. I use that VF page to upload content to a Library.

 

 

Thanks,

TheSwamiTheSwami

Can you query the ContentTag object and use those values?

Bhushan_27Bhushan_27

I think there is no object or elementlike contentTag

TheSwamiTheSwami

Yes, sorry I was looking at ContractTag.

 

This document seems like the closest to what you want:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentversion.htm?SearchType=Stem&Highlight=Restrictions|RESTRICTED|restrictions|restricted|restriction|RESTRICT|Restricted|restrict|restricts|restricting|restrictive||tag|tags|Tags|Tag|tagged|Tagging|tagging

 

At the very bottom is this text:

 

Library tagging rules:
- API tagging respects the tagging restrictions that exist on any library that the document is published into. For example, if the library is in restricted tagging mode and only allows tags one,three, you can't save a version with a TagCsv of one,two,three.
- If the library is in guided tagging mode, you can apply tags to the ContentVersion. You can't query the value of guided tags on a library, but you can query the tagging model of a library.

 

 

So it looks like it is not possible to query the Content Tags from the API.