ArchiveFileToDMS

Archivuje dokument do systému enTeam DMS

Popis

declare procedure ClearAspects dll "ActualDocument" ()
declare function DocumentArchiveToDMS dll "ActualDocument" (string, string, string, pointer): string
declare procedure AddAspect dll "ActualDocument" (string, string, string)

script ArchiveFileToDMS (): boolean
begin
  // ClearAspects is optional function, which erases current aspects
  // This function automatically runs after successful insertion of an attachment in function AttachmentArchive
  ClearAspects ()
  // Adding first aspect
  AddAspect ("Name", "Value", "String")
  // Adding next aspect
  AddAspect ("Name2", "Value2", "String")
  // Archive document with current name to enTeam DMS
  DocumentArchiveToDMS("c:\Faktura.pdf", "", "", actualdocument)
end