Home

Yammer export - can't connect Topics and Messages

%3CLINGO-SUB%20id%3D%22lingo-sub-74406%22%20slang%3D%22en-US%22%3EYammer%20export%20-%20can't%20connect%20Topics%20and%20Messages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-74406%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20working%20with%20PowerBI%20for%20a%20while%20and%20now%20I've%20set%20myself%20on%20a%20taswk%20to%20track%20Yammer%20data%20through%20PowerBI.%20I've%20managed%20to%20do%20a%20lot%20of%20things%2C%20but%20one%20seems%20to%20evade%20me%3A%3C%2FP%3E%3CP%3EHow%20do%20I%20connect%20Topics%20with%20the%20Messages%20(Threads).%20I%20can't%20find%20a%20single%20common%20piece%20of%20information%20that%20would%20enable%20me%20to%20say%3A%20Ah%2C%20OK%2C%20so%20this%20topic%20is%20related%20to%20this%20thread.%20The%20URLs%20are%20different%20on%20the%20topic%20and%20the%20thread%2C%20the%20timestamp%20is%20often%20different%20(because%20we%20encourage%20hygiene%20in%20topicing)%2C%20and%20so%20on.%20The%20only%20thing%20I%20do%20have%20is%20the%20creator%20ID%2C%20but%20that's%20not%20very%20useful.%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20an%20idea%20what%20the%20connection%20between%20the%202%20tables%20could%20be%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIvan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-74406%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAnalytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-84841%22%20slang%3D%22en-US%22%3ERe%3A%20Yammer%20export%20-%20can't%20connect%20Topics%20and%20Messages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-84841%22%20slang%3D%22en-US%22%3E%3CP%3EWhere%20the%20topic%20has%20been%20added%20to%20the%20thread%20using%20Add%20Topics%2C%20it%20doesn't%20appear%20in%20the%20body%20text%20of%20any%20of%20the%20messages.%20Can%20topics%20that%20have%20been%20added%20to%20threads%20be%20found%20anywhere%20in%20the%20export%20files%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-77527%22%20slang%3D%22en-US%22%3ERe%3A%20Yammer%20export%20-%20can't%20connect%20Topics%20and%20Messages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-77527%22%20slang%3D%22en-US%22%3E%3CP%3EIt's%20not%20pretty%2C%20but%20this%20is%20how%20you%20can%20get%20it%3A%20%26nbsp%3BThe%20Topic%20ID%20(primary%20key)%20is%20embedded%20within%20the%20body%20of%20a%20post%2C%20and%20that%20post%20is%20assigned%20to%20a%20thread.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20Message%20ID%20is%20the%20primary%20key%20for%20the%20post%2C%20right%3F%20%26nbsp%3BAnd%20if%20a%20post%20is%20part%20of%20a%20thread%2C%20replied_to_id%20denotes%20the%20Message%20ID%20that%20started%20the%20thread.%20%26nbsp%3BWithin%20the%20Body%20column%20is%20the%20text%20of%20the%20thread.%20%26nbsp%3BWhen%20a%20topic%20is%20added%2C%20the%20string%2C%20%22%5BTag%3A%3CTOPIC%20id%3D%22%22%3E%3A%3CTOPIC%20name%3D%22%22%3E%5D%22%20is%20inserted%20into%20the%20Body%20column.%20%26nbsp%3BThe%20number%20followed%20by%20Tag%20is%20the%20same%20number%20of%20the%20ID%20found%20in%20the%20Topics%20export.%3C%2FTOPIC%3E%3C%2FTOPIC%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou'll%20need%20to%20somehow%20programmatically%20extract%20those%20strings%2C%20and%20you%20can%20safely%20search%20for%20bracket%20followed%20by%20Tag%20and%20then%20a%20colon%2C%20to%20get%20where%20those%20Topic%20IDs%20are%20stored%20within%20the%20body%20string.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20add%20another%20column%20to%20my%20data%20and%20populate%20it%20with%20code.%20%26nbsp%3BThen%20use%20PowerBI%20to%20pivot%20off%20of%20that%20column%20and%20do%20a%20join%20with%20the%20Topics%20export.%20%26nbsp%3BAnd%20like%20I%20said%2C%20you're%20joining%20the%20replied_to_id%20to%20the%20Message%20ID%20to%20get%20them%20all%20to%20match%20up.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20that%20help%20at%20all%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Ivan Spajić Buturac
Occasional Visitor

Hi guys,

 

I've been working with PowerBI for a while and now I've set myself on a taswk to track Yammer data through PowerBI. I've managed to do a lot of things, but one seems to evade me:

How do I connect Topics with the Messages (Threads). I can't find a single common piece of information that would enable me to say: Ah, OK, so this topic is related to this thread. The URLs are different on the topic and the thread, the timestamp is often different (because we encourage hygiene in topicing), and so on. The only thing I do have is the creator ID, but that's not very useful.

Does anyone have an idea what the connection between the 2 tables could be? 

 

Best,

 

Ivan

2 Replies
Highlighted

It's not pretty, but this is how you can get it:  The Topic ID (primary key) is embedded within the body of a post, and that post is assigned to a thread.  

 

So Message ID is the primary key for the post, right?  And if a post is part of a thread, replied_to_id denotes the Message ID that started the thread.  Within the Body column is the text of the thread.  When a topic is added, the string, "[Tag:<Topic ID>:<Topic Name>]" is inserted into the Body column.  The number followed by Tag is the same number of the ID found in the Topics export.

 

You'll need to somehow programmatically extract those strings, and you can safely search for bracket followed by Tag and then a colon, to get where those Topic IDs are stored within the body string.  

 

I would add another column to my data and populate it with code.  Then use PowerBI to pivot off of that column and do a join with the Topics export.  And like I said, you're joining the replied_to_id to the Message ID to get them all to match up.

 

Does that help at all?

Highlighted

Where the topic has been added to the thread using Add Topics, it doesn't appear in the body text of any of the messages. Can topics that have been added to threads be found anywhere in the export files?