+ Start a Discussion
Phuc Nguyen 18Phuc Nguyen 18 

lwc get record count

Hello All,
I have a LWC where I need to get the count of records where the record name is alike.  For example the record names are Test, Test2, Test3.  I would want to retrieve the count of 3 so that when I create the new record I can append teh count to the end of the new recods Name.
Any help is greatly appreciated.
Hi Phuc Nguyen 18,

You think you can give a search option and the user will search for the records post which you would like to append the count for resulted records? It will help if you can elaborate a bit.

I would recommend allowing users to search a string let us say "Test" and based on the results that are poped user can use a button to trigger and you can perform the logic to append based on the requirement.

Let me know if this is something not feasible or I am getting it wrong.

Vinayaka Naik.