The Create File Data Operation The Create File Data Operation

The Create File Data Operation

Ismaen Aboubakare Ismaen Aboubakare

Overview

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. 

Use Cases

  • 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

Filename

The filename of the generated file. This field is required. 

MIME Type

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:

  • application/pgp-encrypted
  • application/pdf
  • application/pgp-encrypted
  • application/vnd.ms-excel
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • application/zip
  • audio/mpeg
  • audio/mp3
  • audio/wav
  • font/otf
  • font/ttf
  • font/woff
  • font/woff2
  • image/gif
  • image/jpeg
  • image/jpg
  • image/png
  • image/svg
  • image/svg+xml
  • text/html
  • text/plain
  • video/mp4

Content

The file string that contains the content of the file that will be generated. 

Asset Setting

Scope

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.

Visibility

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.

Run Results

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.

Further Reading

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?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.