Deleted Field on API V1 or V2?
Hi everyone,
Is there a field value I can call via API that indicates if a post is deleted? I perform a daily pull of our messages API data and upload into our reporting database (catches posts back a week or so and adds new posts to the database and replaces any posts where data has changed). Every once and awhile a topic returns as "No Reply" in my metrics, but this is because the post was subsequently deleted by the user.
Hoping to find some type of flag value so I can filter these out of our metrics if possible.
Thanks,
Kate
Unfortunately, there's no such field value API in V1 and V2 to accomplish this when message is delete.
However, it may be feasible to use Event Subscription REST API and some custom development to achieve this. This application notifies its subscribers so that some action can take place , asynchronously, as a result..
It support and gives Events Like: MessageDelete, MessageUpdate etc.
http://community.mycommunity.com/restapi/vc/events/subscriptions/events/name/MessageDelete/subscribe?event.callback_url=http://watchdog.mycompany.com/indexContent
You need to run above subscription API in your community, after that you will receive a notification any time a message has been deleted, across the entire community.
Subscription to community last until you explicitly unsubscribe.
You can see more information here in this url.