Using attachments

Attachments are files from other Infor EPM applications that can be imported and stored in EPM Administration.

In EPM Administration, you can use the Attachments widget to manage these attachments. Infor EPM applications such as Application Engine or Application Studio can use these attachments and perform actions on them when they access an application database.

The support of attachments enables Application Engine to transfer files from Application Studio to Application Engine and use them in processes.

Note: 

The unique name of a repository attachment file has a maximum length of 50 characters.

The default configuration sets a maximum of 30 MB per email for all attachments. Each single attachment file must be less than 10 MB. You cannot change this configuration.

Application Engine provides, for example, functions for reading plain text files and for reading files with character-separated values (CSV). In this example, an Application Engine process outputs a CSV attachment:

void RepositoryReadCsvDemo()
{
    RepositoryConnection rc = CreateRepositoryConnectionExisting();
    StringListList result = RepositoryReadCsvFile(rc, "Attachment1");
    foreach (StringList line in result)
    {
        foreach (string field in line)
        {
            WriteLine(field);
        }
    }
    RepositoryDisconnect(rc);
}