IBM Connections 4 API: How to Get the Replies of a Topic Using jQuery Ajax


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


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






Example using jQuery

    url : "",
    type : "GET",
    contentType: "application/atom+xml;charset=UTF-8",
    async : true,
    success : function(xml) {
    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="" xmlns:app="" xmlns:opensearch="" xmlns:snx="" xmlns:thr="">
    <opensearch:totalResults xmlns:opensearch="">4</opensearch:totalResults>
    <opensearch:startIndex xmlns:opensearch="">1</opensearch:startIndex>
    <opensearch:itemsPerPage xmlns:opensearch="">10</opensearch:itemsPerPage>
    <link href="" rel="alternate"></link>
    <link href="" rel="self"></link>
    <title type="text">test Replies</title>
    <generator uri="" version="">IBM Connections - Discussion Forum</generator>
    <link href="" rel="" type="application/atom+xml"></link>
    <snx:communityUuid xmlns:snx="">0061679-4811-447-b612-da0f0347d</snx:communityUuid>
    <entry xmlns:app="" xmlns:snx="" xmlns:thr="">
        <title type="text">Replay</title>
            <snx:userid xmlns:snx="">B0452-122-43B-BEE-1C1A4B78</snx:userid>
            <snx:userState xmlns:snx="">active</snx:userState>
        <link href="" rel="self" type="application/atom+xml"></link>
        <link href="" rel="edit" type="application/atom+xml"></link>
        <category term="forum-reply" scheme=""></category>
        <link href="" rel="alternate" type="text/html"></link>
        <link xmlns:thr="" href="" rel="replies" type="application/atom+xml" thr:count="0"></link>
        <thr:in-reply-to xmlns:thr="" ref="" href="" type="application/atom+xml"></thr:in-reply-to>
        <content type="html">&#xD;
            replay 4&#xD;</content>
        <snx:permissions xmlns:snx="">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>

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