This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
Platform.Load("core","1"); | |
var debug = false; | |
var logDE = DataExtension.Init("republish_trigger_log"); | |
try { | |
/* CONFIG */ | |
var parentCategoryID = 1264; // Triggered Sends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FieldName | DataType | Length | Precision | Scale | PrimaryKey | Required | DefaultValue | |
---|---|---|---|---|---|---|---|---|
TriggeredSendCustomerKey | Text | 36 | FALSE | FALSE | ||||
Key | Text | 100 | FALSE | FALSE | ||||
Value | Text | FALSE | FALSE | |||||
insertedDate | Date | FALSE | FALSE | getDate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
Platform.Load("core","1"); | |
var debug = false; | |
try { | |
var prox = new Script.Util.WSProxy(); | |
// credit Jason Hanshaw: https://salesforce.stackexchange.com/questions/178299/setup-an-email-notification-to-admin-when-triggered-sends-exceed-a-level-of-500/230406#230406 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FieldName | DataType | Length | Precision | Scale | PrimaryKey | Required | DefaultValue | |
---|---|---|---|---|---|---|---|---|
Client_ID | Number | TRUE | TRUE | |||||
TriggeredSendDefinition_ObjectID | Text | 36 | TRUE | TRUE | ||||
ObjectID | Text | 36 | TRUE | TRUE | ||||
Name | Text | 100 | TRUE | TRUE | ||||
CustomerKey | Text | 36 | TRUE | TRUE | ||||
seq | Number | TRUE | TRUE | |||||
SenderProfile_Name | Text | 100 | FALSE | FALSE | ||||
SendClassification_Name | Text | 100 | FALSE | FALSE | ||||
RowObjectID | Text | 36 | FALSE | FALSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
s.businessUnitMID | |
, s.businessUnitName | |
, s.status | |
, count(*) count | |
from subscribers_all s | |
group by | |
s.businessUnitMID | |
, s.businessUnitName | |
, s.status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
u.BusinessUnitID businessUnitMID | |
, u.SubscriberKey | |
, u.subscriberId | |
, 'unsubscribed' Status | |
, u.UnsubDateUTC DateUnsubscribed | |
, case | |
when u.businessUnitID = 1 then 'Business Unit Name 1' | |
when u.businessUnitID = 2 then 'Business Unit Name 2' | |
when u.businessUnitID = 3 then 'Business Unit Name 3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
s.SubscriberID | |
, s.SubscriberKey | |
, s.Status | |
, s.EmailAddress | |
, s.DateUnsubscribed | |
, s.DateJoined | |
, s.DateUndeliverable | |
, b.businessUnitMID | |
, b.businessUnitName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
set @s = buildrowsetfromstring("Baby shark|Mommy shark|Daddy shark|Grandma shark|Grandpa shark|Let's go hunt|Run away|Safe at last|It's the end","|") | |
set @d=", doo doo doo doo doo doo" | |
set @n=char(10) | |
for @v=1 to 9 do | |
set @r = row(@s,@v) | |
set @f = field(@r,1) | |
outputline(concat(@f,@d,@n,@f,@d,@n,@f,@d,@n,@f,"!")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
set @s=buildrowsetfromstring("Baby shark|Mommy shark|Daddy shark|Grandma shark|Grandpa shark|Let's go hunt|Run away|Safe at last|It's the end","|") | |
for @v=1 to 9 do | |
for @l=1 to 4 do | |
set @r = row(@s,@v) | |
set @f = field(@r,1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%[ | |
set @s = "Baby shark|Mommy shark|Daddy shark|Grandma shark|Grandpa shark|Let's go hunt|Run away|Safe at last|It's the end|" | |
for @i=1 to 112 do | |
set @c = substring(@s,@i,1) | |
if @c == "|" then |