I have a file drop automation in place that enables me to remove a contact record and all other records that are related to that contact from my data model in Contact Builder. The import file for this comes from an external database.
I have now created another automation to filter out certain contacts, extract this to the safehouse and then move it to the import directory of my FTP via a file transfer activity. It has the same naming convention as the import file for the removal automation described in the first paragraph.
I would have expected that the file transfer activity would have triggered my file drop automation as it drops the file into the import directory, but nothing happened.
So my questions are:
-
Is it correct that a file transfer activity can not trigger a file drop automation?
-
If so, does anybody have a suggestion how I could trigger the file drop automation once the file from my second automation is on the FTP?
Best Answer
Yes you are correct, File Transfer activity does not trigger a file drop automation. This is because the file is not being dropped (defined as being added to the FTP from an outside source) but is instead being transferred (moved around internally on the FTP).
What I would do in your situation is either combine the two automations into a single one, or add a step to the end of your first automation that triggers your second automation.
Example SOAP call to start an automation:
and here is a great sample of the full SSJS script from @AdamSpriggs blog: