Portal User & Cases

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • x3t9fi
    Junior Member
    • Jun 2016
    • 13

    #1

    Portal User & Cases

    Hi

    I'am trying to setup a portal and a portal user as you described in your tutorial. Those steps are working. Now i trying to setup a automatic assignment to my "support" user so that espo sending me an e-mail if a cases is opened. So i added the rights on field basis, cases - assigned users - read: yes and edit: yes. Then i added in the field settings of cases the assigneduser as my user as standard value. Now if i create as the portal user a new case i can see that the assigned user is as standard the "support" user so this settings are ok - but when i would save the case i get a 403 Error.

    Any suggestions?
  • yuri
    Member
    • Mar 2014
    • 8914

    #2
    Hi,

    Is EspoCRM version 5.2.*?
    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

    • x3t9fi
      Junior Member
      • Jun 2016
      • 13

      #3
      Hi Version 5.2.2

      Comment

      • yuri
        Member
        • Mar 2014
        • 8914

        #4
        For portal user system doesn't allow to specify Assigned User. It will be denied in the backend. You can utilize workflow or create a formula-script that will specify a specific assignee on a certain condition.
        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

        • x3t9fi
          Junior Member
          • Jun 2016
          • 13

          #5
          Why what is the logic behind this restriction? If iam right, i cant get a e-mail notification if a user creates a case at the portal?

          Comment

          • yuri
            Member
            • Mar 2014
            • 8914

            #6
            Otherwise a user having an access to the portal would be able to assign a case to any user. You need to create a rule that will assign the case on the server side.
            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

            • x3t9fi
              Junior Member
              • Jun 2016
              • 13

              #7
              is it possible that you can help me with this rule?

              Comment

              • yuri
                Member
                • Mar 2014
                • 8914

                #8
                https://github.com/espocrm/documenta...ion/formula.md

                In Administration > Entity Manager define the formula for the Case entity type.

                Code:
                ifThen(createdBy.isPortalUser, assignedUserId = 'id_of_needed_user');
                Last edited by yuri; 05-29-2018, 05:10 PM.
                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

                • x3t9fi
                  Junior Member
                  • Jun 2016
                  • 13

                  #9
                  Hi, thank you for your work - that really helps - a last question how can i get the userID of the users?

                  Comment

                  • x3t9fi
                    Junior Member
                    • Jun 2016
                    • 13

                    #10
                    or is the userID - the same as the username?

                    Comment

                    • yuri
                      Member
                      • Mar 2014
                      • 8914

                      #11
                      Open the user's detail view and copy id from the browser address bar.
                      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

                      • x3t9fi
                        Junior Member
                        • Jun 2016
                        • 13

                        #12
                        Awesome - Thank yo so much yurikuzn - Your Solutions is working great! Big thanks for your help!

                        Comment

                        Working...