1 Reply Latest reply on Feb 18, 2016 8:25 PM by pawans

    Finding placeID without using Jive API

    bprakash1359

      Hi Team,

       

      With the issue that we faced using Jive search API to find placeID of a jive group, we are going with an alternate approach where users have to directly input placeID in the UI.

      Following are the manual steps verified to get placeID of a jive group:
      [Note: User should make sure that he is authorized to access the group]

      • Browse Jive group URL (Ex: https://<jive-host>/groups/group1)
      • Right click on page and select 'View page source'
      • Search for 'browseId’ or ‘containerBrowseId'
      • You will see the placeID value assigned to browseId/containerBrowseId.

       

      Could you please confirm if the above steps to find placeId of a jive group without using Jive API is appropriate? Or, please suggest any other approach to find placeId without using Jive API?

       

      Thanks

      Bhanu Prakash.

        • Re: Finding placeID without using Jive API
          pawans

          Hi,

          I am assuming this app you are referring to, where user's will input the group id is outside jive, the same app where you were trying to determine a group's id.

           

          I think a better option would be to have a small jive-sdk based app at the group level.

          Using JS apis (osapi calls) you can get the current group details.

          You can even display the group's id here so that the user's don't have to do a view source to get that data.

           

          For app under actions tab

          gadgets.actions.updateAction({

                   id: "org.jivesoftware.movecontent.group",

                   callback: gadgets.util.makeClosure(this, this.handleContext)

          });

           

          handleContext : function(ctx) {

                 console.log(ctx.jive.content.id)

          }

           

          or  for app under group's nav bar

           

          osapi.jive.core.container.getLaunchContext(function (selection) {

             var containerId = selection.jive.content.id;

             var containerType = 700;

           

            osapi.jive.corev3.places.get({entityDescriptor: [containerType, containerId]})

                 .execute(function (place) {

                      console.log(place.list[0].placeID);

                 });

          });

           

          If your jive instance version support jive hosted apps, then this would be more easy solution.