How to programmatically retrieve all leads from a mailing list? | Community
Skip to main content
AEMing
Level 2
October 16, 2015
Solved

How to programmatically retrieve all leads from a mailing list?

  • October 16, 2015
  • 3 replies
  • 1045 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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

3 replies

WhoaShekhar
Level 10
October 16, 2015

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!

AEMing
AEMingAuthor
Level 2
October 16, 2015

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?

edubey
edubeyAccepted solution
Level 10
October 16, 2015

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