How to Get TagId using TagName in with TagManger API | Community
Skip to main content
rajkumarsamala
Level 2
Oct 11, 2017 12:28 PM UTC
Solved

How to Get TagId using TagName in with TagManger API

Hi All,

i was looking for a way to read the TagId Eg: Sea:Water/Fish from TagName Eg: Fish

i read the Tag Manager API Doc, TagManager (Adobe AEM 6.0.0 API 6.0.0 API)

it has Two methods to Find Tag Details'

TagManager.FindResults findByTitle(String title)

RangeIterator<Resource> find(String tagID)

But my case is different Here,

i don't have TagId, TagTile, all i have is Tag Name,

Wondering is there any way to get the tagId using tagName ?

Thanks

Raj

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ashwin_RajuAccepted solution
Level 3
Oct 11, 2017 1:15 PM UTC

Hi Raj,

You can try using TagManager.resolveByTitle("tagTitlePath") or TagManager.resolve("tagPath"). Once you get the Tag object you will be able to get the Tag ID from it using Tag.getTagID() method.

2 replies

VeenaVikraman
New Participant
Oct 11, 2017 1:31 PM UTC

That's correct !!

Translate
Ashwin_RajuAccepted solution
Level 3
Oct 11, 2017 1:15 PM UTC

Hi Raj,

You can try using TagManager.resolveByTitle("tagTitlePath") or TagManager.resolve("tagPath"). Once you get the Tag object you will be able to get the Tag ID from it using Tag.getTagID() method.

Translate