Solved

API prefilter toggle

  • 30 January 2023
  • 3 replies
  • 76 views

Userlevel 4
Badge +2

Hi i have a prefilter on some of my tables.

What syntax do i use to toggle them on and off when calling the api of that table? 

e.g.
{{baseUrl}}/employee?$prefilter=only_active_employees

How to deactivate the only active employees prefilter?

icon

Best answer by Anne Buit 30 January 2023, 14:47

View original

This topic has been closed for comments

3 replies

Userlevel 3
Badge +3

Hi Anne,

You can omit the $prefilter to not have any prefiltes active.

Kind regards,

Tim de Lang

Userlevel 4
Badge +2

This does not work if the default behaviour of the prefilter is on like this?

Is it possible to turn it off in my call? 
 

Userlevel 7
Badge +5

A prefilter that has been set to On-hidden or On-locked cannot be disabled via the API.

You can leave the prefilter On or Off at the model settings and only make it On hidden by enabling Data authorization and turning off Visible for specific roles.