AUTOMATION STUDIO HACK
QUESTION :
CURRENTLY WE WERE DOING WEEKLY EXTRACT AND IMPORTING THEM TO FTP. NOW MARKET HAS CHANGED THEIR PLAN AND HAS INCREASED NUMBER OF EMAILS AND NEED ADDITIONAL EXTARCTS FOR TUESDAY TO FRIDAY AND THE CURRENT EXTRACT FOR SATURDAY TO MONDAY. IS THERE ANY OPTION IN AUTOMATION STUDIO?
HERE IS THE HACK !
1. Setup TWO Automation a) for Tuesday to Thursday b) Friday to Monday both runs daily and same setup except the data extract as per the requirement.
2. Activities on Automation a) query activity b) verification c) data extract activity
AUTOMATION 1
Activity 1.1
Overwrite query to update the DataExtension1:
==============================================================
SELECT CASE WHEN s.WEEKDAY=1 THEN 'TUSEDAY' WHEN s.WEEKDAY=2 THEN 'WEDNESDAY' WHEN s.WEEKDAY=3 THEN 'THURSDAY' END AS DAY FROM (SELECT TOP 1 DATEPART(WEEKDAY, GETDATE()) AS WEEKDAY from DataExtension1 ) s
================================================================
Activity 2.1
Verification Activity [Automation TUESDAY-THURSADY]
RULES > CONDITION :
COUNT IS EQUAL TO 0
TRIGGER ACTION - STOP AUTOMATION
ACTIVITY 3.1
DATA EXTRACT FOR TUESDAY-THURSADY ROLLING RANGE 1 DAY
AUTOMATION 2
Activity 1.1
Overwrite query to update the DataExtension2:
==============================================================
SELECT CASE WHEN s.WEEKDAY=4 THEN 'FRIDAY' WHEN s.WEEKDAY=5 THEN 'SATURDAY' WHEN s.WEEKDAY=6 THEN 'SUNDAY' WHEN s.WEEKDAY=0 THEN 'MONDAY' END AS DAY FROM (SELECT TOP 1 DATEPART(WEEKDAY, GETDATE()) AS WEEKDAY from DataExtension2 ) s
================================================================
Activity 2.1
Verification Activity [Automation FRIDAY-MONDAY]
RULES > CONDITION :
COUNT IS EQUAL TO 0
TRIGGER ACTION - STOP AUTOMATION
ACTIVITY 3.1
DATA EXTRACT FOR FRIDAY-MONDAY ROLLING RANGE 1 DAY
VERIFCATION STEP IS THE HACK, IT WILL NOT RUN THE DATA EXTRACT WHEN THE CONDITION IS MET.
Comments
Post a Comment