Database View on a single table and filter data to be displayed in database view

ramandeepgarg6
Tera Expert

Hi Experts,

3rd party has to fetch records from incident table and we don't want to expose whole incident table with all the records and columns. So idea is to expose database view of incident table with limited records and fields.

The issue is I am not able to filter the records in database view on a single table. Could you please help? "Where" query is not working.

find_real_file.png

Regards

Ramandeep

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

Hello,

 

You need to have 2 tables for database view, once done, you can set filter as shown in screenshot below

 

find_real_file.png

find_real_file.png

 

Then run the view and you should see the desired results, please see below screenshot which shows only 1 record as per filter applied on number field above

 

 

find_real_file.png

Please mark reply as correct / helpful if it answers your question

View solution in original post

6 REPLIES 6

Coleton
Kilo Guru

Are you using REST to fetch these INC records? If so and you're querying the INC table, you can add query filters to get the records you need.

Deepak Ingale1
Mega Sage

Hello,

 

You need to have 2 tables for database view, once done, you can set filter as shown in screenshot below

 

find_real_file.png

find_real_file.png

 

Then run the view and you should see the desired results, please see below screenshot which shows only 1 record as per filter applied on number field above

 

 

find_real_file.png

Please mark reply as correct / helpful if it answers your question

Deepak is correct and it fixes the issue.

Moy1
Kilo Guru

you can create a custom table that is a child of the incident table and write a business rule that copies record from the incident to this new table that satisfies your condition.