Skip to main content
Participating Frequently
Nov 29, 2022 3:14 AM UTC
Question

We need to fetch the record counts.

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

Inspiring
Nov 29, 2022 6:13 AM UTC

Hi,

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

harshitb6843
Brainy
Nov 29, 2022 7:07 AM UTC

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. 

Participating Frequently
Jan 12, 2023 10:53 AM UTC

Thanks @harshit bumb

richardm900458
Inspiring
Nov 29, 2022 9:03 AM UTC

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