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.

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);
}