0 Replies Latest reply on Jul 24, 2013 9:54 PM by gadget

    App Actions with Blog Posts

      Hi,

       

      I am working on a Jive app which has support for App action and ! experience. App action works fine with Document content but gives unexpected results for Blog posts. I am trying to get Post object by using Id which comes from selection object which is made available to app when it is launched.

      Example -

      {"jive":{"content":{"type":"osapi.jive.core.Post","id":XXXXX}}}

       

      Core V2 api (Javascript api) does not have a Post static class exposed for getting post object directly by ID. When V3 API is used to get a blog post object using below given request, it results in getting an object which refers to some other content in Jive (some binary document).

       

      Jive API call -

       

      //Get all fields of a post by URI

      var postURI = ..."/contents/XXXXX"; // "/contents/postId"

       

      var request = osapi.jive.corev3.contents.get({

         "type": "post",

         "uri": postURI ,

         "fields": "@all"

      });

       

      request.execute(function(data) {

        console.log("Post Object:", data);

      });

       

      Please let me know, if I am missing something or using wrong ID or API calls.

       

      Thanks in advance.