simulate workflow action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lith
    Banned
    • May 2024
    • 15

    simulate workflow action

    I have a workflow action on email recieve with attachment.
    Since i am on localhost (using docker) - I cant simply just send an email to myself so espocrm would detect.

    How would I simulate an email workflow action to test my action?
    The espocrm docs dont provide any info about this https://docs.espocrm.com/administration/workflows/
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2
    Try to create a draft

    Comment

    • Lith
      Banned
      • May 2024
      • 15

      #3
      Originally posted by Kharg
      Try to create a draft
      ah yes, I forgot to mention.
      I did try that and it seems to not work.
      I have this single line `error_log("A Entity data: " . print_r($entity->toArray(), true));` in the method but it does not egt executed.
      Or atleast not in a away i would prefer since in the data/logs file - i dont see any output.

      Comment

      • Kharg
        Senior Member
        • Jun 2021
        • 410

        #4
        If you want to log data in the logs use this:
        PHP Code:
        $GLOBALS['log']->debug('Here is my variable:'); 
        

        Comment

        • Lith
          Banned
          • May 2024
          • 15

          #5
          Originally posted by Kharg
          If you want to log data in the logs use this:
          PHP Code:
          $GLOBALS['log']->debug('Here is my variable:'); 
          
          sadly that aint doing it either.
          I noticed on my docker container that the method IS being executed. but nothing in the logs file.
          If i cause an intentional bug (500 error crash) than espocrm fills in log file just fine. but regardless if I use my method or yours - log file is empty.

          Comment

          Working...