Announcement

Collapse
No announcement yet.

simulate workflow action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lith
    replied
    Originally posted by Kharg View Post
    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.

    Leave a comment:


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

    Leave a comment:


  • Lith
    replied
    Originally posted by Kharg View Post
    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.

    Leave a comment:


  • Kharg
    replied
    Try to create a draft

    Leave a comment:


  • Lith
    started a topic simulate workflow action

    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/
Working...
X