SF Marketing Cloud : Display ALL LIST INFO Like Subscriber List,My List, Publication List etc using JavaScript


NOTE : Replace $ icon with < icon. I have replaced it as facing some technical issue while writing on Blog.

$!doctype html>
$html>
$head>
$title>ALL LIST INFO Like Subscriber List,My List, Publication List etc using JavaScript.$/title>
$!–Table Style–>
$style>
table, th, td {border: 1px solid black;}
$/style>
$/head>
$body>
$h2>ALL LIST INFO Like Subscriber List,My List, Publication List etc using JavaScript.$/h2>
$table style=”width:100%”>
$tr>
$th>ListName$/th>
$th>ListKey$/th>
$th>listType$/th>
$th>listStatus$/th>
$/tr>
$script runat=server language=”JavaScript” >
Platform.Load(“Core”,”1″);
//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(“$tr>”);
Write(“$td>” + lists[i].ListName + “$/td>”);
Write(“$td>” + lists[i].CustomerKey + “$/td>”);
Write(“$td>” + lists[i].Type + “$/td>”);
Write(“$td>” + lists[i].Category + “$/td>”);
Write(“$/tr>”);
}
$/script>
$/table>
$/body>
$/html>

Advertisements


Categories: Cloud

Tags: , , , , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

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

%d bloggers like this: