Get previous assigned user :)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 423

    Get previous assigned user :)

    Hey!

    I have a lead, lead is assigned to me, if certain things happened, system will create a meeting for me (flowchart).

    However, later, I decided to change the assigned user, I need system to remove the calendar event for the previous user. I think I can create a new flowchart and make remove the meeting?

    How can I do that?


    Thanks!
    Attached Files
  • zerosix
    Member
    • Jan 2024
    • 45

    #2
    you can do this in 'Before Save Custom Script' in the lead entity , search for events linked to the lead, and assign them to the new user.

    Comment

    • lazovic
      Super Moderator
      • Jan 2022
      • 809

      #3
      Hi Russ,

      You can use entity\attributeFetched() formula script function to get previous record attribute: https://docs.espocrm.com/administrat...tributefetched

      Comment

      • Russ
        Senior Member
        • Feb 2022
        • 423

        #4
        Thank you lazovic, zerosix

        Comment

        Working...