0 Replies Latest reply on May 29, 2015 4:49 AM by nehamathur

    Unable to post a discussion/ question to a specific place

    nehamathur

      Hi Team,

       

      I am trying to post a discussion/ question to a particular place as below -

      var request=osapi.jive.corev3.discussions.create({

                      'content': {'type':'text/html',

                                  'text':question

                                 },

                      'subject': subject,

                      'question':isQuestion,

                      'parent': 'http://localhost:8080/api/core/v3/places/1023' ,

                      'visibility':'place'   

                  });

       

       

                  request.execute(function(response){

                      if(response.error){

                          console.log("*** error creating the discussion/question: " );

                      }else{

                          console.log("** discussiom/question created successfully");

                      }

                   });

       

      The result is- "*** error creating the discussion/question: "

       

      Can you please point as to what I am doing wrong here? I have used 'parent' property along with visibility option to post the question to a specific place.

       

      Any help will be highly appreciated.

       

      If i do not specify the parent and visibility property, then it works but then it is not tied to a particular place.

       

      Thanks

      Neha