MassUpdate and EntryPoints

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank
    Member
    • Aug 2015
    • 64

    MassUpdate and EntryPoints

    The question is: how to pass an array of identifiers [ids] of marked records in section "Contacts", through the mass update in EntryPoints php file?

    <?php

    namespace Espo\Custom\EntryPoints;

    class myEP extends \Espo\Core\EntryPoints\Base
    {
    public static $authRequired = false;

    public function run()
    {}
    }

    which function and where should I write in my code that used to get an array of identifiers marked records?

    If possible, give an example of a piece of code. Thank you!
  • yuri
    Member
    • Mar 2014
    • 8697

    #2
    This is not EspoCRM related questions. It's more about PHP.

    You can pass it as POST parameter

    $idList = $_POST['idList'];

    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

    • Frank
      Member
      • Aug 2015
      • 64

      #3
      Anyway, it did not get to pass the id list of selected Contacts through Mass Update to my EntryPoint.

      The problem is that I do not need to pass the id of a specific Contact, and does not all the existing Contacts, but only a list of the chosen through Mass Update action.

      Who can help?

      Comment

      • Frank
        Member
        • Aug 2015
        • 64

        #4
        if i create a custom field and custom view of this field (.js file), after that i include this field to my "mass update" for Contact entity - can i get ids list of checked contacts to my custom view js file? Please can you give me example! Thx!

        Comment

        • yuri
          Member
          • Mar 2014
          • 8697

          #5
          I don't know any way how to do it. Try to make a chain like

          this.getParentView().getParentView(). ....

          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

          Working...