Loading...
Area: Episerver Campaign
Applies to versions: Not applicable

create

Creates an attachment in Episerver Campaign.

Type: long

Parameters

NameTypeValue

sessionId

String

ID of the session

Name

String

Internal name of the attachment to be added

mimeType

String

Corresponding MIME type of the file

Example: image/gif or text/comma-separated-values.

filename

String

File name to be used for the attachment

content

byte[ ]

Content of the attachment (in binary form)

Return values

ID of the created attachment

Code structure

long create(String sessionId, String name, String mimeType, String filename, byte[] content)

Last updated: Apr 24, 2018