Skip to main content
November 29, 2022
Question

We need to fetch the record counts.

  • November 29, 2022
  • 4 replies
  • 0 views

Hello All,


We are having 1 record which is having relationship with others record also.

We are getting the data from the record by the function a!recordData( ) and displaying on the interface.

We are having different buttons for child interface on the selection we filter on the basis of the different status related to the button clicked by the user we are fetching the data from the record.

The requirement is to show the number of records with the button label.

Anyone who have used some function by which we can directly fetch the number of filtered record and can display.

Thanks in advance

4 replies

November 29, 2022

Hi,

Please try to find any parameter in the record or a!recordData( ) like "fetchCount" or "fetchTotalCount".
Thank You.

harshitb6843
November 29, 2022

You cannot do it with a!recordData(). But you can use the a!queryRecordType() function and use the "fetchTotalCount" parameter in it. 
The result should give you what you are looking for. 

January 12, 2023

Thanks @harshit bumb

richardm900458
November 29, 2022

its perhaps a stupid way, but it might work.
use count() for the resulted array of a!recordData()