How to Add Leads to Lists Programatically
Hi,
I am trying to create a user that that will be act like a lead same as in Campaign console & want to assign this to List provided. I have created the user using UserManager api.
Session session = resourceResolver.adaptTo(Session.class); User subscriberUser = userManager.createUser(email_id, RandomStringUtils.randomAlphanumeric(20).toUpperCase()); session.save();
But these are not reflecting as Lead in Campaign console, Also want to add this user in the list created say : xyz . Any Idea how can i achieve this programmatically.
Thanks