Portal User and Assigned User.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1498

    #16
    Hello,
    when you create the record, let empty assignedUser

    en make just "afterSave" Hook . (not before). whith the code above..
    that do the trick certanly

    Regards
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • sobolevfff
      Member
      • Mar 2020
      • 81

      #17
      I tried afterSave and got another error:

      Espo.ERROR: (403) Ошибка разрешения на назначение.; POST / crm / api / v1 / portal-access / 5f7b0ed7309e1fe3f / Article; строка: 938, файл: /home/assssssss/public_html/crm/application/Espo/Services/Record.php [] []

      I will buy the Advanced package in the future, I will try to create a Workflow on demo for now.
      Last edited by sobolevfff; 10-13-2020, 10:22 PM.

      Comment

      • sobolevfff
        Member
        • Mar 2020
        • 81

        #18
        Solved the problem in another way. Removed all codes, made the field assignedUser optional and read-only. I also changed some rights in the Portal Roles and everything works as it should.
        Thanks for the help.

        Comment

        Working...