Expand my Community achievements bar.

SOLVED

How to programmatically retrieve all leads from a mailing list?

Avatar

Level 3

How do I programmatically retrieve all leads from a mailing list?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Nodes under /home/users having this property will be leads

      
cq:authorizableCategory
String
mcm

Nodes under /home/groups having this property will be List

      
cq:authorizableCategory
String
mcm

View solution in original post

3 Replies

Avatar

Level 10

Hi There,

Thanks for reaching out to Adobe Community.

You might want to look at the below link which talks about programmatically accessing content through JCR API.

https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

Thanks!

Avatar

Level 3

Yes. That is a start. But how do I query mailing lists / lead?

It seems maling lists are located in home/groups and leads in home/users but what indicates whether the node is a mailing list or a lead?

And rather than querying JCR, I would much more prefer to do this using an API. I've been looking through http://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/ but still haven't figured out if/how to retrieve leads. NewsletterEmailService.createMailingList(String groupName, Session session) and then figure out how to get the group name?

Avatar

Correct answer by
Level 10

Hi,

Nodes under /home/users having this property will be leads

      
cq:authorizableCategory
String
mcm

Nodes under /home/groups having this property will be List

      
cq:authorizableCategory
String
mcm