PUT/api/{dossierID}/instances/{instanceId}/filters #37
Answered
by
Dholmblad
ChristiaanEmpowerBI
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
Dholmblad
Oct 4, 2023
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
but no example of how I can apply it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment







@ChristiaanEmpowerBI The search box filter is essentially a different view of an element list.
Here is an example
For your dossier & data the filter can be applied either when executing the dossier instance or afterwards with the PUT /../ filters API:
POST /dossiers/{id}/instances
`{
"filters": [
{
"key": "{FILTER KEY}",
"selections": [
{
"name": "Aaby"
}
]
}
],
"persistViewState": true
}`
PUT /dossiers/{id}/instances/{instanceId}/filters
[
{
"key": "{FILTER KEY}",
"selections": [
{
"name": "Aaby"
}
]
}
]
The problem you maybe facing is the ID being provided is the ID form, but the API is expecting the attribute elementID. Elements can be obtained from GET /api/dossiers/{dossierId}/inst…