When creating a new Entry using the java api does anyone know how to insert a file into an attachment pool with multiple attached fields in it? (Similar to the included Remedy form Sample:Classes). I've tried using:
File f = new File("c:\\test.txt");
long size = f.length();
AttachmentInfo ai = new AttachmentInfo(f.getName(), size, size, f.getAbsolutePath());
EntryItem ei = new EntryItem(new FieldID(536870924), new Value(ai));
but can't get it to work! How do i specify which attached field to use? the java docs aren't the greatest
