How to use custom folder for Workflow class in Advanced module?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexvam1
    Junior Member
    • Oct 2023
    • 9

    How to use custom folder for Workflow class in Advanced module?

    I have Advanced pack extension and

    /crm/custom/Espo/Modules/Advanced/Services/Workflow.php

    file

    How to override this file?!

    Default CRM files can be override in custom folder.

    For example, i can override default crm classes - /crm/application/Espo/Core/Mail/Sender.php by save file at /crm/custom/Espo/Custom/Core/Mail/Sender.php

    But how to make this trick with /crm/custom/Espo/Modules/Advanced/Services/Workflow.php?!
  • yuri
    Member
    • Mar 2014
    • 8438

    #2
    It's not possible.

    > Default CRM files can be override in custom folder.

    It's not the case. Only metadata language and a very few classes can be overridden just by placing in custom.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • alexvam1
      Junior Member
      • Oct 2023
      • 9

      #3
      Originally posted by yuri
      It's not possible.

      > Default CRM files can be override in custom folder.

      It's not the case. Only metadata language and a very few classes can be overridden just by placing in custom.
      Ok, thanks.

      I'm newbie in OpenCRM...and can't understand, what the best way to make this...

      I have my own /custom/Espo/Custom/Core/Mail/Sender.php class
      But /crm/custom/Espo/Modules/Advanced/Services/Workflow.php used original /application/Core/Mail/Sender.php file

      How to use my /custom/Espo/Custom/Core/Mail/Sender.php in /crm/custom/Espo/Modules/Advanced/Services/Workflow.php for sending email?

      Comment

      Working...