====== ChangeFileName ======
ChangeFileName changes the file name of the attachment from the document or if given the attachment of the Guid. The change is logged in the status history.
==== Syntax: ====
ChangeFileName(FileName, ['Attachment GUID'])
==== Example: ====
ChangeFileName(concat("Fn_", ActualDateTime("yyMMddHHss"), ".edi"))
GetDocument(GetDocument()/@OriginDocumentId)/@InterchangeId => $TmpOid
GetInterchange($TmpOid)/@AttachmentId => $AttachmentOid
ChangeFileName(concat("Fn_", ActualDateTime("yyMMddHHss"), ".edi"), $AttachmentOid)