Skip to main content

Sample code to get the date of the document in the attachment

public getAttachmentDate()
{
eBAConnection con = CreateServerConnection();
Try
{
Con. open();
DMFile form = con. FileSystem.GetFile(FormPath);//FormPath = the path of the form. For example, Document1.Path
foreach(var item in form. GetAttachments("Default"))
{
DateTime dt = item. CreateDate.Value;
}
}
finally
{
Con. Close();
}
}