3 Replies Latest reply on May 31, 2013 5:19 PM by craig.mcclanahan

    document.createExtProps -> not a function?

    sven.vetter

      According to JavaScript 3 API documentation I can use extended properties on documents. But this doesn't work for me ("not a function").

       

      Could you check my example? I use Jive 6.0.2.

       

        osapi.jive.corev3.documents.get({uri: "https://intranet.trivadis.com/trialogdev/api/core/v3/contents/2024"}).execute(function(response) {
          if (response.error) {
            alert("1:" + response.error.message);
          } else {
      //      console.log(response);
      
            var params = {
              tilm_approved : "true"
            };
      
      //      if (response.createExtProps) {
              response.createExtProps(params).execute(function(response) {
                if(response.error) {
                  alert("2:" + response.error.message)
                } else {
                  console.log("ok");
                }
              });
      //      } else {
      //        console.log("dont know createExtProps...");
            }
          }
        });