Mass Update extension trigger in update loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • biocronic
    Junior Member
    • Mar 2023
    • 19

    #1

    Mass Update extension trigger in update loop

    Hello folks,

    I need a trigger for calling another function that add additional data to the selected records
    within the update loop that is executed during mass update.

    Can you tell me in which file the mass update function is located?

    And in which folders I should create the extension files without destroying the
    update ability of the crm itself?

    Thank you for your help and time and have a nice day.

    Click image for larger version

Name:	Search-Entity.png
Views:	0
Size:	73.2 KB
ID:	121502
  • victor
    Active Community Member
    • Aug 2022
    • 1026

    #2
    1. Filter Leads with the status "New", as in your screenshot.
    2. Click on the triangle -> Select All Results (screenshot 1).

    Click image for larger version

Name:	image.png
Views:	0
Size:	22.9 KB
ID:	121506
    3. Actions -> Mass Update and select the desired field whose data you want to change.

    Click image for larger version

Name:	image.png
Views:	0
Size:	14.0 KB
ID:	121507
    You can find the fields that can be added to the Mass Update layout in Administration > Entity Manager > Your_entity_name (Lead)​​ > Layouts > Mass Update:

    Click image for larger version

Name:	image.png
Views:	0
Size:	74.9 KB
ID:	121508

    Comment


    • biocronic
      biocronic commented
      Editing a comment
      Thank you but this does not answer my question. Seems like you ignored all text I wrote and only took a look at the image. You tell me how to use mass update the normal way but this is what I already knew.
      So when the action that is executed as you described I like to change other field values also additional to the (one) selected within the mass update loop. So this is why I asked you where the function for the mass update is located. Should be some .js or .php file within the directory.
  • biocronic
    Junior Member
    • Mar 2023
    • 19

    #3
    Hi developers,

    The answer above did not answer the question.... here we go again.

    I need a trigger for calling another function that add additional data to the selected records
    within the update loop that is executed during mass update.

    I dont want to execute the mass update again and again for more field changes than only one.

    Can you tell me in which file the mass update function is located?

    And in which folders I should create the extension files without destroying the
    update ability of the crm itself?


    Should be some .js or .php file within the directory.

    Thank you for your help and time and have a nice day.
    Click image for larger version  Name:	grafik.png Views:	0 Size:	113.3 KB ID:	121544
    Last edited by biocronic; 09-23-2025, 02:58 PM.

    Comment


    • lazovic
      lazovic commented
      Editing a comment
      For similar requests (extension development, CRM file management), it's best to address them in the Developer Help thread: https://forum.espocrm.com/forum/developer-help.

    • victor
      victor commented
      Editing a comment
      Since I am not a developer, I can only guess about your intentions and the files you are trying to find. You may be looking for /application/Espo/Classes/MassAction/User/MassUpdate.php.
Working...