The Create File Data Operation generates a file from the content that is passed in. The generated file can be accessed through a URL which can then be passed throughout a journey.
- Generate an .ics file to add an event to a user's calendar.
- Generate .CSV files that can be uploaded/downloaded from a user or a data store.
Data Operation Properties
The filename of the generated file. This field is required.
The media type that indicates the nature of the content passed in. This field is required in order to create a file. For more information on MIME Types see here.
Supported MIME Types include:
The file string that contains the content of the file that will be generated.
Determines the scope of the download link. This can either be APP or SESSION. If the created file should be accessible from other user sessions, choose APP. Otherwise, if the created file is unique per customer, choose SESSION.
Determines the visibility of the download link. This can either be GLOBAL or PRIVATE. If the generated file has sensitive customer information, it should be marked as PRIVATE. With PRIVATE, the file will have an extra layer of access protection. The generated URL will have the necessary credentials to access the file.
NOTE: The generated URL for the file allows anyone to access the file. The URL should only be shown to the customer that the PDF belongs to.
Download Url Expiration
Determines how long the download link to the file is available. For instance, if 30 Days is inputted, the download link will no longer work after 30 days. Note that if the file is marked as PRIVATE, the link has a maximum expiration length of 7 days.
If this field is left blank, the download link will never expire.
For more information, see The Asset Data Type.
A Variable is automatically created to hold the results of this Operation. This result will be an object with several keys that describe the generated file.
The most important of these keys is downloadUrl, which is a URL that downloads the generated file when accessed.
To create an .ics file using the Create File Data Operation, see Integrating to External Calendar Systems.
For more information on working with files, see Working with Files & Media.
To create custom PDF forms from HTML, you can use The HTML to PDF Data Operation.
For information on Assets, read The Asset Data Type.
Was this article helpful?
Articles in this section
- Data Operation Overview
- The Transform Data Operation
- AirData Request Data Operation
- The Google Data Operation
- The Zendesk Data Operation
- The Salesforce Data Operation
- The Delete Assets Data Operation
- The Fetch Asset Details Data Operation
- The XML to JSON Data Operation
- The Fill PDF Form Data Operation