Removing team id from upcoming emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LuckyLouie
    Senior Member
    • Nov 2017
    • 172

    Removing team id from upcoming emails

    Hi,
    Why why attached workflow removing only first related Teams?

    For example:
    Email was send on adress: aa@company.com, bb@company.com, cc@company.com

    aa@company.com is related with Group Email Accounts: TeamA
    bb@company.com is related with Group Email Accounts: TeamB
    cc@company.com is related with Group Email Accounts: TeamC

    Attached workflow removing only TeamA from assigned Teams to Email. TeamB and TeamC are still related with this Email.

    Thank You for help!
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,

    I think better is to use action Unlink from Another Record

    Comment

    • LuckyLouie
      Senior Member
      • Nov 2017
      • 172

      #3
      Tanya, I tested action Unlink from Another Record and still the same effect :/

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        What, if you set in Entity Manager Formula. It runs before entity saved
        Code:
         IfThen(parentType != "Opportunity", teamsIds = [])

        Comment

        • LuckyLouie
          Senior Member
          • Nov 2017
          • 172

          #5
          Code:
          IfThen(parentType != "Opportunity", teamsIds = [null])
          If the message has been sent to one address, e.g. aa@company.com (TeamA), then the formula works. However, when it is sent to> 1 email address e.g. aa@company.com (TeamA), bb@company.com (TeamB) only one team is removed from related teams

          Comment

          • LuckyLouie
            Senior Member
            • Nov 2017
            • 172

            #6
            tanya yuri Do you have any ideas for a solution?

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              could you try to change formula to
              IfThen(parentType != "Opportunity", teamsIds = list())
              This record is correct. Do you have any related customization or workflow?

              Comment

              • LuckyLouie
                Senior Member
                • Nov 2017
                • 172

                #8
                Originally posted by tanya
                IfThen(parentType != "Opportunity", teamsIds = list())
                I turned off all related workflow. Still the same effect :/
                tanya yuri
                Have you ever tested such settings as mine? Any oder ideas?

                Comment

                • LuckyLouie
                  Senior Member
                  • Nov 2017
                  • 172

                  #9
                  Still any idea? is it not a bug?

                  Comment

                  • tanya
                    Senior Member
                    • Jun 2014
                    • 4308

                    #10
                    further discussion is here https://forum.espocrm.com/forum/bug-...-does-not-work

                    Comment

                    Working...