SOLVED

How to get yammer group id via API

%3CLINGO-SUB%20id%3D%22lingo-sub-2048568%22%20slang%3D%22en-US%22%3EHow%20to%20get%20yammer%20group%20id%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048568%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20two%20types%20of%20Yammer%20group%20ID%20for%20an%20example%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E51430511108%20(This%20id%20type%20is%20used%20in%20the%20old%20interface)%3CBR%20%2F%3EeyJabHlwZSI6Ikdyb3VwIiijrWQiOiI0NDIxNzIyNTWyIn0%20(This%20id%20type%20is%20used%20in%20the%20new%20interface)%3CBR%20%2F%3E%3CBR%20%2F%3EI%20need%20that%20new%20id%20type%20for%20configuring%20Yammer%20web%20part%20by%20code%2C%20but%20I'm%20getting%20old%20type%20ID%20when%20we%20create%20Yammer%20using%20API%2C%20I'm%20using%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroups.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroups.json%3C%2FA%3E%22%20API%20for%20creating%20new%20Yammer%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20is%20any%20possibility%20to%20get%20a%20new%20type%20of%20group%20ID%2C%20passing%20input%20of%20the%20old%20type%20group%20ID%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2048568%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2048831%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20yammer%20group%20id%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048831%22%20slang%3D%22en-US%22%3EI%20found%20the%20answer%2C%20I%20just%20need%20to%20base64%20encoded%20in%20this%20format%20then%20I%20can%20get%20the%20new%20format%20ID%3CBR%20%2F%3E%7B%22_type%22%3A%22Group%22%2C%22id%22%3A%2250612233024%22%7D%20--%26gt%3B%20eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI1MDYxMjIzMzAyNCJ9%3C%2FLINGO-BODY%3E
New Contributor

There are two types of Yammer group ID for an example


51430511108 (This id type is used in the old interface)
eyJabHlwZSI6Ikdyb3VwIiijrWQiOiI0NDIxNzIyNTWyIn0 (This id type is used in the new interface)

I need that new id type for configuring Yammer web part by code, but I'm getting old type ID when we create Yammer using API, I'm using "https://www.yammer.com/api/v1/groups.json" API for creating new Yammer group.

 

Is there is any possibility to get a new type of group ID, passing input of the old type group ID?

1 Reply
Best Response confirmed by Ravichandran K (New Contributor)
Solution
I found the answer, I just need to base64 encoded in this format then I can get the new format ID
{"_type":"Group","id":"50612233024"} --> eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI1MDYxMjIzMzAyNCJ9