Announcement

Collapse
No announcement yet.

MassUpdate and EntryPoints

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

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

    You can pass it as POST parameter

    $idList = $_POST['idList'];

    Comment


    • #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


      • #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


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

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

          Comment

          Working...
          X