5 Replies Latest reply on Mar 24, 2015 1:41 AM by lasithc

    Getting the information about deleted attachment with DES API

    lasithc

      Hi,

       

      With the new DES API [1] we can get the activities for deleted attachment. i.e this is the appropriate DES API response.

       

               "name":"ACTIVITY_DELETEATTACHMENT_DOCUMENT",

               "activityType":"DeleteAttachment",

               "actionObjectId":1001,

               "actionObjectType":102,

               "activity":{ 

                  "action":"DeleteAttachment",

                  "actionObject":{ 

                     "objectType":"document",

                     "objectId":1001,

                     "objectHash":"c26e3e5ceced5e33088b3a5c5b1179e7e397ceb5",

                     "subject":"new doc1",

                     "containerId":1006,

                     "containerType":"usercontainer",

                     "isVisibleToPartner":false,

                     "status":"PUBLISHED",

                     "versionId":3,

                     "url":"https://jivesoftware-sprint95.jivelandia.com/docs/DOC-1001",

                     "fullPath":"/community_1/usercontainer_1006",

                     "normalizedPath":"/usercontainer_1006"

                  },

               }

       

      I want to get real attachment information for above deletion. As you can see we have the DOC related information above but not the attachment related.

      For example I am interested on following like information for deleted attachment. Yea it is make sense to not to display information of deleted objects. But I want to get at least the attachment ID that was deleted.

       

      id" : "1010",

        "resources" : {

        "self" : {

        "allowed" : [ "GET", "DELETE" ],

        "ref" : "https://jivesoftware-sprint95.jivelandia.com/api/core/v3/attachments/1010"

        }

        },

        "contentType" : "image/jpeg",

        "name" : "Security-Cameras.jpg",

        "size" : 105451,

        "url" : "https://jivesoftware-sprint95.jivelandia.com/api/core/v3/attachments/1010/data",

        "doUpload" : false,

        "type" : "attachment"

       

       

       

       

       

      [1]Using the V2 Jive Data Export Service (Analytics)