Workflow: When an Account is assigned to a certain User it needs to...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rfrancocantero
    Member
    • May 2020
    • 93

    #1

    Workflow: When an Account is assigned to a certain User it needs to...

    Workflow: When an Account is assigned to a certain User it needs to automatically have a certain Collaborator

    I tried this and the strange thing is that the user-id appears below (not the NAME) the Collaborators section but after a refresh it's gone?

    Why is this not working?

    Click image for larger version  Name:	image.png Views:	0 Size:	131.6 KB ID:	118896
  • yuri
    Member
    • Mar 2014
    • 9094

    #2
    You added an imperative function to the conditions section which is not a correct way to do. You need to add it to the Actions. Better, use a UI action rather than formula.
    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

    • rfrancocantero
      Member
      • May 2020
      • 93

      #3
      Hi Yuri,

      This doesn't work. See attachment. I modify the Account, it triggers the workflow. The USER ID is added but after a refresh it's gone?
      Last edited by rfrancocantero; Today, 03:08 PM.

      Comment

      • yuri
        Member
        • Mar 2014
        • 9094

        #4
        I cannot answer as it's too little input.
        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

        • rfrancocantero
          Member
          • May 2020
          • 93

          #5
          The attached file is a GIF, did you play it? I've updated an ACCOUNT and, according to the Workflow, it should add a user as Collaborator automatically but it doesn't. Instead, a random large key (it's the user_id) is being added but removed once I refresh the browser or navigate away.

          Comment

          • yuri
            Member
            • Mar 2014
            • 9094

            #6
            To be able to help, one would need information on what you did, not the result. How your rule does look. What actions you added.

            The rule from the first post is wrongly done.
            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

            • victor
              Active Community Member
              • Aug 2022
              • 936

              #7
              rfrancocantero,

              Try a variant shown in the screenshot. It works as expected, I checked.

              Click image for larger version  Name:	image.png Views:	0 Size:	122.3 KB ID:	118913

              Comment

              • rfrancocantero
                Member
                • May 2020
                • 93

                #8
                Hi Victor, yes it works here too! I think it was a caching issue with the browser. Thank you guys very much!

                Comment

                Working...