Skip to end of metadata
Go to start of metadata

About

IBM Connections 4 expose a way to get the replies of a topic. Here's one easy way to do it with an asynchronous HTTP (Ajax) request using jQuery.

There is no a link to IBM Connections 4 documentation.

Atom API Request Details

Headers

Content-Type : application/atom+xml;charset=UTF-8

Type

GET

URL

{host}/forums/atom/replies?topicUuid={element-id}

Example

http://www.mysite.com/forums/atom/replies?topicUuid=56dc-b3a2-4385-8b-04c32

Example using jQuery

$.ajax({
    url : "http://www.mysite.com/forums/atom/replies?topicUuid=56dc-b3a2-4385-8b-04c32",
    type : "GET",
    contentType: "application/atom+xml;charset=UTF-8",
    async : true,
    success : function(xml) {
    	console.log('replies');
    },
    error: function(jqXHR, textStatus, errorThrown) {
        console.log(jqXHR + " - " + textStatus + ' - ' + errorThrown);
    }
});

Note:  console.log can throw errors in IE, they are there for illustrative purposes only and should be changed as required.

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:snx="http://www.ibm.com/xmlns/prod/sn" xmlns:thr="http://purl.org/syndication/thread/1.0">
    <opensearch:totalResults xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">4</opensearch:totalResults>
    <opensearch:startIndex xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">1</opensearch:startIndex>
    <opensearch:itemsPerPage xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">10</opensearch:itemsPerPage>
    <id>http://www.mysite.com/forums/atom/replies?topicUuid=bebc96-bdd6-4410-80ca-2ecb6b89</id>
    <link href="http://www.mysite.com/forums/html/topic?id=beb2c96-bd6-410-8ca-2ecb4076b89" rel="alternate"></link>
    <link href="http://www.mysite.com/forums/atom/replies?topicUuid=be02c96-bd6-4410-80ca-2ecb476b89" rel="self"></link>
    <title type="text">test Replies</title>
    <updated>2013-01-08T17:36:58.543Z</updated>
    <generator uri="http://www.ibm.com/xmlns/prod/sn" version="4.0.0.0">IBM Connections - Discussion Forum</generator>
    <link href="http://www.mysite.com/communities/service/atom/community/instance?communityUuid=0616079-481-417-b612-da90347d" rel="http://www.ibm.com/xmlns/prod/sn/container" type="application/atom+xml"></link>
    <snx:communityUuid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">0061679-4811-447-b612-da0f0347d</snx:communityUuid>
    <entry xmlns:app="http://www.w3.org/2007/app" xmlns:snx="http://www.ibm.com/xmlns/prod/sn" xmlns:thr="http://purl.org/syndication/thread/1.0">
        <id>urn:lsid:ibm.com:forum:3631c47a-d368-4761-9b1f-b27dca264a2f</id>
        <title type="text">Replay</title>
        <published>2013-01-08T17:36:58.543Z</published>
        <author>
            <email>email@email</email>
            <name>Joaquin</name>
            <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">B0452-122-43B-BEE-1C1A4B78</snx:userid>
            <snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>
        </author>
        <updated>2013-01-08T17:36:58.543Z</updated>
        <link href="http://www.mysite.com/forums/atom/reply?replyUuid=36147a-d38-4761-9b1f-b2dca64a2f" rel="self" type="application/atom+xml"></link>
        <link href="http://www.mysite.com/forums/atom/reply?replyUuid=36347a-d68-4761-9b1f-b2ca264a2f" rel="edit" type="application/atom+xml"></link>
        <category term="forum-reply" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
        <link href="http://www.mysite.com/forums/html/topic?id=bebc96-bd6-410-80ca-2ecb476b89#3631c47a-d68-4761-9b1f-b27dc64a2f" rel="alternate" type="text/html"></link>
        <link xmlns:thr="http://purl.org/syndication/thread/1.0" href="http://www.mysite.com/forums/atom/replies?replyUuid=36317a-d68-471-91f-b27a264a2f" rel="replies" type="application/atom+xml" thr:count="0"></link>
        <thr:in-reply-to xmlns:thr="http://purl.org/syndication/thread/1.0" ref="urn:lsid:ibm.com:forum:be02c96-bd6-410-80ca-2ec9076b89" href="http://www.mysite.com/forums/atom/topics?forumUuid=b02c96-dd6-410-8ca-2ecb46b89" type="application/atom+xml"></thr:in-reply-to>
        <content type="html">&#xD;
            replay 4&#xD;</content>
        <snx:permissions xmlns:snx="http://www.ibm.com/xmlns/prod/sn">none, create_forum, view_forum, edit_forum, del_forum, create_post, edit_personal_post, edit_all_post, del_personal_post, del_all_post, pin_topic, subscribe, lock_node, create_topictag, del_all_topictag, del_personal_topictag, create_forumtag, del_all_forumtag, del_personal_forumtag, view_category, edit_personal_question, edit_all_question, add_moderator</snx:permissions>
    </entry>
</feed>

About the author

Enterprise Web Developer
Joaquin is an Enterprise Web Developer at Base22 with over seven years of experience designing and developing web solutions for enterprise clients. He is a well rounded web developer with skills building interfaces in IBM WebSphere Portal and WCM, IBM Connections, and many others. He is an Oracle Certified Java Developer and a Microsoft Certified Visual Studio Developer. He blogs at http://j-arellano.com