SF Documentation: https://help.salesforce.com/articleView?id=sf.mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5
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 | |
left(convert(varchar(36), jn.VersionID),36) VersionID | |
, left(jn.JourneyName,100) JourneyName | |
, left(ja.ActivityName,100) ActivityName | |
, left(ja.JourneyActivityObjectID,36) JourneyActivityObjectID | |
from _Journey jn | |
inner join ( | |
select | |
convert(varchar(36), ja0.VersionID) VersionID /* UniqueIdentifier datatype doesnt play nicely with JO-INs */ |
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" language="JavaScript"> | |
Platform.Load("core","1"); | |
var debug = false; | |
try { | |
var prox = new Script.Util.WSProxy(); | |
var startTime = Now(); | |
var timeoutMilliseconds = 1500000; // 25 minutes |
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 | |
---|---|---|---|---|---|---|---|---|
ClientID | Number | TRUE | TRUE | |||||
SendID | Number | TRUE | TRUE | |||||
SubscriberKey | Text | 254 | TRUE | TRUE | ||||
EmailAddress | EmailAddress | FALSE | FALSE | |||||
SubscriberID | Number | TRUE | TRUE | |||||
ListID | Number | TRUE | TRUE | |||||
EventDate | Date | TRUE | TRUE | |||||
EventType | Text | 10 | FALSE | FALSE | ||||
BatchID | Number | TRUE | TRUE |
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
{ | |
"info": { | |
"_postman_id": "7526dd49-78b6-4589-a640-fe7b879ef751", | |
"name": "Short.io", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "407776" | |
}, | |
"item": [ | |
{ | |
"name": "Shorten URL", |
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 | |
---|---|---|---|---|---|---|---|
ClientID | Number | TRUE | TRUE | ||||
ObjectID | Text | 100 | TRUE | TRUE | |||
StartDate | Date | TRUE | TRUE | ||||
EndDate | Date | TRUE | TRUE | ||||
TaskResultID | Text | 100 | FALSE | FALSE | |||
ImportDefinitionCustomerKey | Text | 100 | FALSE | FALSE | |||
ImportType | Text | 100 | FALSE | FALSE | |||
ImportStatus | Text | 100 | FALSE | FALSE | |||
ID | Number | 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
<script runat="server" type="JavaScript"> | |
Platform.Load("core", "1"); | |
try { | |
var debug = false; | |
var prox = new Script.Util.WSProxy(); | |
var DEKey = "ImportResultsSummary"; |
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" language="JavaScript"> | |
Platform.Load("core","1"); | |
var debug = false; | |
// Mirrors AuditEvent REST Object data into a data extension | |
// - Audit Event Log must be configured in the account first -- Email Studio > Admin > Security Settings > Enable Audit Trail Data Collection: Yes | |
// - creates its own data extension | |
// - docs: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/getAuditEvents.html | |
// - defaults to the past 30 days of events |
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" language="ampscript"> | |
set @debug = 0 | |
set @unsubscribeFromAll = RequestParameter("unsubscribeFromAll") /* append this in the CloudPagesURL function, if desired */ | |
set @submitFlag = RequestParameter("submitFlag") | |
/* on page load (pre-submit) */ | |
if empty(@submitFlag) then | |
/* retrieve values from encrypted qs parameter send context */ |
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" language="javascript"> | |
var prox = new Script.Util.WSProxy(); | |
var DEKey = "YourDEKey"; | |
var clearDEResponse = prox.performItem("DataExtension",{"CustomerKey": DEKey},"ClearData"); | |
</script> | |