The CreatorCon Call for Content is officially open! Get started here.

How to set max limit on data source

Amitra Bhunia
Tera Expert

Hi All,

 

I want to set a limit on a JDBC data source so that it will load only that many records from database. I know I can use the specific query in data source and add limit in the query (i.e. SELECT * FROM Customers
LIMIT 3). But I am searching for any OOB servicenow feature (like a field where I can set the number ) that can achieve limiting the number of fetched record through the datasource.

 

Thanks & Regards,

Amitra Bhunia

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Amitra Bhunia 

 

unfortunately there is not such an option for a data source and in my opinion this would also be the wrong place. A data source is just providing the content, however your data sour consumers are responsible for restricting the number of fetched records.

 

Maik

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi @Amitra Bhunia 

 

unfortunately there is not such an option for a data source and in my opinion this would also be the wrong place. A data source is just providing the content, however your data sour consumers are responsible for restricting the number of fetched records.

 

Maik

Hi Maik,

 

What are you referring as data source consumer? A view on table in database? or as I mentioned in the question setting a limit in query?

 

Thanks & Regards,

Amitra