lead name as the default call name when scheduling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • livewire
    Senior Member
    • Nov 2016
    • 100

    lead name as the default call name when scheduling

    hi

    is it possible to set the lead name as the call name by default.. currently when scheduling a call i have to enter a name, but i want to automatically fill the lead name as the call name field..

    is it possible to do?
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    The easiest way is to set Formula for the Call:
    Code:
    ifThen(
        entity\isNew() && parentType == 'Lead',
        name = parentName
    );
    This formula works only for a new Call. Also, check whether the Call's name field is not required, so it can be left blank upon creation.

    Comment

    • livewire
      Senior Member
      • Nov 2016
      • 100

      #3
      Hi

      Even though i add that code, the name field doesn't automatically fill in

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        Please notice that this formula will be executed only if you creating a new Call record and the Call parent filed will be assigned to some Lead.

        Comment

        • livewire
          Senior Member
          • Nov 2016
          • 100

          #5
          yep.. even when i try to create a new call, on the call list the name goes as NONE does save the lead name

          Comment

          • livewire
            Senior Member
            • Nov 2016
            • 100

            #6
            maybe the parentName value is incorrect?

            Comment

            • item
              Active Community Member
              • Mar 2017
              • 1476

              #7
              Hello,
              without screenshoot is hard to find.
              i think what you will can be done by : dynamic-handler


              search post by telecastg .. he have give solution for me
              If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

              Comment

              • Maximus
                Senior Member
                • Nov 2018
                • 2731

                #8
                > maybe the parentName value is incorrect?

                I doubt. This is the standard field.
                Did you select a Lead before press the Save button?


                Comment

                • livewire
                  Senior Member
                  • Nov 2016
                  • 100

                  #9
                  Originally posted by Maximus
                  > maybe the parentName value is incorrect?

                  I doubt. This is the standard field.
                  Did you select a Lead before press the Save button?

                  yes.. lead is selected by default.. Its very odd

                  Comment

                  • livewire
                    Senior Member
                    • Nov 2016
                    • 100

                    #10
                    Please check this screenshot

                    Comment

                    • Maximus
                      Senior Member
                      • Nov 2018
                      • 2731

                      #11
                      So do you expect that the `name` field will be automatically filled on the view you provided on the screenshot?
                      The formula will change the `name` field value right after you fire the Save button.
                      If you want to see this change live on the view you provided, you need to develop your own custom view or try to achieve this with the dynamic-handler like item suggested above https://docs.espocrm.com/development/dynamic-handler/.

                      Comment

                      Working...