I am uploading the file using the IBM Social Business Toolkit and now want to add tag(s) to it. Either as part of the upload or immediately afterwards. In the javadocs I can see that the FileService has a method to add a comment to a file. I can't see an equivalent for Tags though.
How do I programmatically add a tag to a file uploaded to a community on IBM SmartCloud?
87 Views Asked by Martin Perrie At
1
There are 1 best solutions below
Related Questions in IBM-SBT
- Add a owner of a community with IBM connections Cloud API
- SBT ManagedBean property credentialStore is ignored with SmartCloudOAuth2Endpoint
- Error getting Connection Cloud data using Xpages and IBM SBT
- How to access the OEmbed Service in Connections Cloud using the IBM SBT?
- IBM Social Business Toolkit - no support for IBM Connections 5.5?
- IBM Social Business Toolkit - Create an activity
- Do IBMSBT has a built in XML to JSON converter in JAVA?
- How to programmatically create a bookmark for another connections user?
- Is X-LConn-RunAs exposed through the Social Business Toolkit?
- Retrieve tags from user profile in IBM Connections using Social Business Toolkit does not give tags
- Adding an image attachment to a wiki page programmatically using RestAPI through javascript
- IBM SBT :Expectation Failed error
- Ajax Call to spring servlet could not initiate oauth2 dance for IBM connection cloud
- How do I replace an existing Community file on IBM SmartCloud
- Error - Unknown packaging eclipse plugin
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is a Java method to update a tag on a community file - but it is broken in the most recent version of Smartcloud. It has actually been fixed in the most recent GitHub version of the code but it is not available for download as of April 2015.
The bug is reported here https://github.com/OpenNTF/SocialSDK/issues/1624. The method SHOULD be updateCommunityFileMetadata and with that we could add TAGs as Metadata. That would be simple to add to the end of the "addFile" Java method.
The sample code to TAG a file can be found here in the playgroup - it is updating the Meta Data via JavaScript API
https://greenhouse.lotus.com/sbt/sbtplayground.nsf/JavaScriptSnippets.xsp#snippet=Social_Files_API_UpdateCommunityFileMetadata
to TAG a file use the following