---
schema_version: "1"
id: d63741936de60ff06c07f5d500da8f35b609072e4b07ccef2125e4ddba1c8877
title: Substitution Strings Example
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_as_substitution_strings_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_as_substitution_strings_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 54f2eeda1aff0d306ca0ad1bf7c9f6d5511b5edf2bbf4ff9724bf06561ccaeca
description: Use substitution strings in a File Transfer activity or Data Copy or Import (formerly Import File) activity in Automation Studio.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Substitution Strings Example

Use substitution strings in a File Transfer activity or Data Copy or Import (formerly Import File) activity in Automation Studio.

Place these substitution strings in the File Naming Pattern field of a File Transfer activity or Data Copy or Import activity. Use these strings to reuse the trigger file in a subsequent step of a file drop automation.

```
%%FILENAME_FROM_TRIGGER%%
```

This string returns the name of the file placed in the FTP folder. Prefixes, suffixes, and file extensions are not allowed. The automation engine doesn’t read file extensions, so any characters that follow the final dot \[.\] in a file name are excised.

  
| Substitution String | File Dropped | Result |
| --- | --- | --- |
| %%FILENAME\_FROM\_TRIGGER%% | Myfilename.txt.gpg.zip | Myfilename.txt.gpg.zip |
| %%FILENAME\_FROM\_TRIGGER%%.zip | Myfilename.txt.gpg.zip | Invalid – no suffix allowed |

```
%%FILENAME_FROM_TRIGGER_BASE%%
```

This string returns the name of the file without the final file extension. Prefixes, suffixes, and extension substitutions are allowed.

  
| Substitution String | File Dropped | Result |
| --- | --- | --- |
| %%FILENAME\_FROM\_TRIGGER\_BASE%% | Myfile.txt.zip.gpg | Myfile.txt.zip |
| %%FILENAME\_FROM\_TRIGGER\_BASE%%.gpg | Myfile.txt | Myfile.gpg |

```
%%BASEFILENAME_FROM_TRIGGER%%
```

This string returns the name of the file without any file extensions. Prefixes, suffixes, and extension substitutions are allowed.

  
| Substitution String | File Dropped | Result |
| --- | --- | --- |
| %%BASEFILENAME\_FROM\_TRIGGER%% | Myfile.txt | Myfile |
| %%BASEFILENAME\_FROM\_TRIGGER%% | Myfile.txt.zip.gpg | Myfile |
| %%BASEFILENAME\_FROM\_TRIGGER%%.dat | Myfile.txt | Myfile.dat |
| %%BASEFILENAME\_FROM\_TRIGGER%%\_%%Month%%\_%%Day%%.txt | Myfile.txt | Myfile\_02\_18.txt |
| %%Month%%\_%%Day%%\_%%BASEFILENAME\_FROM\_TRIGGER%%.txt | Myfile.txt | 02­\_18\_Myfile.txt |
| %%BASEFILENAME\_FROM\_TRIGGER%%.txt | Myfile.02.08.txt | Myfile.txt |

#### See Also

- [Filename Patterns Reference](https://help.salesforce.com/s/articleView?id=mktg.mc_as_filename_patterns_reference.htm&release=264.0.0&type=5 "Review these guidelines for the design of a file naming pattern in Automation Studio.")