<sn-record-picker> unable to load the data if user records more

Priya3696
Tera Contributor

Hi Team,

We are using <sn-record-picker> to load user records dynamically. When server returns more records (ex-500+) then <sn-record-picker> not showing any result on front end. However, if we reduce the sys_id returning around 200 it is showing the users in front end.

 

Any help on how to improve the performance is much appreciated.

 

Thanks,

Priya

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Priya3696 

check this link on how to optimize

Reference field snRecordPicker: Performance Tips for ServicePortal/Angular Directive 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

Thank you for your help.

I followed the steps, but then front end is not showing that bar to select record. I am attaching the directive screenshot if I am missing anything?

Priya3696_1-1767345044857.png

 

@Priya3696 

the link I shared has approach

what debugging did you do?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

In my case we called scripted REST API, based on some checks it is returning sys Id's. We are initializing qualifier query and passing as default query to <sn-record-picker>. We are getting response from server, able to see sys_id's in log at client side, but front end shows no record found.

 

With your approach I have created new Angular directive and added the same with mentioned changed to html but then it stopped showing dropdown bar.