Announcement

Collapse
No announcement yet.

Action Unlink from Another Record does not work

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

  • Action Unlink from Another Record does not work

    Hello,
    Removing teamsIds from upcoming Emails doesn't work. When email was send to more than one Personal or Group Email Accounts, only first teamIds is removing.

    Tried workflow/functions:

    1. Unlink from Another Record

    2.
    PHP Code:
       IfThen(parentType != "Opportunity"teamsIds = []) 
    3.
    PHP Code:
    IfThen(parentType != "Opportunity"teamsIds = list()) 
    3.
    PHP Code:
    IfThen(parentType != "Opportunity"teamsIds = [null]) 
    Thanks in advance.
    Last edited by LuckyLouie; 04-30-2018, 06:25 AM.

  • #2
    EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.


    IfThen(parentType != "Opportunity", teamsIds = list()) - is the most correct way, but
    to catch this try to create sequential workflow, where you will update target entity and set your rule. In main workflow trigger another workflow with delay 1 minute

    Comment


    • #3
      But there is one serious problem: e-mails are visible for team until the sequential workflow starts (for at least a 1 minute) :/

      Comment


      • #4
        Is option to run seq workflow with delay <1 minute? It is other option to resolve this problem?

        Comment


        • #5
          Hi, the job is created current time with seconds and add 1 minute delay.
          cron.php is run every minute at 00 seconds by default, so it could be run with delay 1:00 minimum and 1:59 maximum (min:sec)

          Comment

          Working...
          X