Getting Lead IDs...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macMonkey
    Junior Member
    • Nov 2024
    • 18

    Getting Lead IDs...

    On a list view when you select the checkboxes manually or select the checkbox on the top of the list which selects all records that are visible, the data returned from the list are in a json format like below.
    Click image for larger version  Name:	Screenshot 2024-12-18 at 12.41.56.png Views:	0 Size:	282.9 KB ID:	113192But when you select all possible row by opening the dropdown next to the checkbox on the top row and click on "Select All Results" this is the data returned from the list and it looks like it does not contain anything id related...
    Click image for larger version  Name:	Screenshot 2024-12-18 at 12.41.38.png Views:	0 Size:	345.6 KB ID:	113193
    How can i get the records ids in this format?

    PS: On the espo source code (list.js) it looks like when all results are checked it skips the data.ids value assignment...

    Code:
    if (this.allResultIsChecked) {
      data.where = this.collection.getWhere();
      data.searchParams = this.collection.data || {};
      data.selectData = data.searchData; // for bc;
      data.byWhere = true; // for bc
    } else {
      data.idList = idList; // for bc
      data.ids = idList;
    }
    Last edited by macMonkey; 12-18-2024, 12:20 PM.
  • yuri
    Member
    • Mar 2014
    • 8438

    #2
    Select All Results means all records that satisfy search criteria. There can be millions of such. IDs are not determined.
    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...