$sp.getStream() not returning all entries

vkachineni
Kilo Sage
Kilo Sage

I have a customized ticket conversation widget on the case table.

I get the entries using the line

data.stream = $sp.getStream(data.table, data.sys_id);

The internal servicenow UI shows the case has 102 Comments (client visible) entries order desc on date created.

However on the portal after the line

data.stream = $sp.getStream(data.table, data.sys_id);

data.stream.entries is only showing only 98 entries. 

The first 4 comment entries after the case creation are not being displayed on the portal side. See attachments.

The number of comments on the case (102 records) and the number of rows in the table 'sys_journal_field' for this case and 'comment' element match.

Why is $sp.getStream returning only 98 records. Also is there a way I can test $sp.getStream as a background script to see the results?

 

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022
1 ACCEPTED SOLUTION

Ankur Sharma
Tera Guru

You can configure the number of entries users can see in the ticket conversation widget by configuring system property glide.service_portal.stream_entry_limit

 

find_real_file.png

Have a look at the following documents:

Service Portal properties

KB0686172

 

Let me know if it helps.

View solution in original post

3 REPLIES 3

vkachineni
Kilo Sage
Kilo Sage

Hi ...Any help on this issue?

 

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

Ankur Sharma
Tera Guru

You can configure the number of entries users can see in the ticket conversation widget by configuring system property glide.service_portal.stream_entry_limit

 

find_real_file.png

Have a look at the following documents:

Service Portal properties

KB0686172

 

Let me know if it helps.

PrashantRathore
Tera Contributor

Hi @Ankur Sharma @vkachineni ,

I have similar issue but its quite different in my case, I have the OOTB limit i.e.100. and In a record it has 75 comments. means it should show all 75 comments as we have the limit as 100 entries. But it is just showing 15. When i am increasing the limit to 300 then i can see 75 comments. Please let me know if you can help me on this.

Thanks,

Prashant