crmTech/ April 24, 2018/ Salesforce Marketing Cloud/ 0 comments

In SFMC, below Server Side Java Script (SSJS) is written in Cloud page to display the List details

  1. List Name
  2. List Key
  3. List Type
  4. List Category
<!doctype html>
 <title>ALL LIST INFO Like Subscriber List,My List, Publication List etc using JavaScript.</title>
 <!--Table Style-->
 table, th, td {border: 1px solid black;}
 <h2>ALL LIST INFO Like Subscriber List,My List, Publication List etc using JavaScript.</h2>
 <table style="width:100%">
 <script runat=server language="JavaScript" >
 //var lists = List.Retrieve({Property:"Type",SimpleOperator:"equals",Value:"Public"});//Filter to display only which has a Type Public List
 var lists = List.Retrieve();//Retrieve All the List
 for (i = 0; i < lists.length; i++)
 Write("<td>" + lists[i].ListName + "</td>");
 Write("<td>" + lists[i].CustomerKey + "</td>");
 Write("<td>" + lists[i].Type + "</td>");
 Write("<td>" + lists[i].Category + "</td>");
Share this Post

About crmTech

Sharad is working from more than 11 years in IT industry. He has giving his technical services in CRM for telecom, automobile, retail, finance industry in Sales, Service and Marketing. He has primary skill in Siebel and Salesforce Marketing Cloud. Apart from this he has worked in Google Cloud, Wordpress blogging, SEO optimization, Short film making, mobile apps creation,logo design creation for his own interest.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.