Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Guide

How can I link an attachment to the text in the same post through events generated in bulk data?

Hi everyone,

I was wondering if anyone knows how to link the two messages.publish events when a new post is made with an attachment. Here's an example.

Let's say I start a new conversation with an image attachment. It will trigger two messages.publish event in the bulk data with two different conversation_id/message_id. The data generated will look something like this (example data):

EVENT 1:
id: messages.publish.text123 
action_type: messages.publish
conversation_id: 123
conversation_name: testing
message_id: 123
message_subject: testing
message_type: topic

EVENT 2: 
id: messages.publish.image345 
action_type: messages.publish
conversation_id: 345
conversation_name: image.png
message_id: 345
message_subject: image.png
message_type: message 

While these two events belong to the same post, there are two completely unique identifiers for the two events and I am unable to link these two events with one another, unless I am missing something and thats why I am asking this community to help. 

Why do I want it? I want to find out how many posts had an attachment with it? I am unable to calculate it in a clear way because there is no linking identifier between the attachment and the text in the post. 

Ideally, I should have data which looks something like this:

EVENT 1:
id: messages.publish.text123 
action_type: messages.publish
conversation_id: 123
conversation_name: testing
message_id: 123
message_subject: testing
message_type: topic

EVENT 2: 
id: messages.publish.image345 
action_type: messages.publish
conversation_id: 123
conversation_name: testing
message_id: 345
message_subject: image.png
message_type: message 

1 Reply 1
Boss

Thanks @Albertojonson04@safikhan and I have opened case 394533 with support. If submit a ticket let us know so we reference it in our ticket too 😁



Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.