CreateAttachment() IF "Attachment No." <> 0 THEN BEGIN IF Attachment.GET("Attachment No.") THEN Attachment.TESTFIELD("Read Only",FALSE); IF NOT CONFIRM(Text001,FALSE) THEN EXIT; END; NewAttachNo := WordManagement.CreateWordAttachment("Interaction Template Code" + ' ' + Description,"Language Code"); IF NewAttachNo <> 0 THEN BEGIN IF "Attachment No." <> 0 THEN RemoveAttachment(FALSE); "Attachment No." := NewAttachNo; IF InteractTmplLanguage.GET("Interaction Template Code","Language Code") THEN MODIFY ELSE INSERT; END ELSE ERROR(Text000);