0
Done

Adjust calls to Maxedy methods when executing a script that belongs to a package

Peter van Meijel 11 months ago • updated 2 months ago 4

As an administrator, I want that calls to Maxedy methods are adjusted when I execute a script that belongs to a package so that the script keeps working correctly.


(WHY) When importing a package, the name of entities is automatically prefixed with a name. As a result, calls to Maxedy methods may break.

(WHO) Administrator

(WHAT) Adjust calls to Maxedy methods when executing a script that belongs to a package.


Current Situation

When importing a package, the names of the entities get a prefix (see this story). As a result, the names of entities in the target environment differs from the names in the source environment.


Scripts typically contain calls to Maxedy methods such as persistent.saveDocument. The paramaters of such calls may include de name of entities. Because the name changes, the scripts may break.


Acceptance Criterea

When executing a script that belongs to a package, we automatically add the prefix to paramaters that refer to entity names when calling the following methods:

  • persistent.findDocuments
  • persistent.getDocument
  • persistent.saveDocument
  • persistent.deleteDocument
  • bizzStream.sendMail
  • persistent.saveDocumentLazy
  • persistent.copyAttachments
  • persistent.copyAttachmentsLazy