Querying a model with "Query Deleted / Archived records" property true does not show archived records using skuid action on when tab shown

  • 2
  • Problem
  • Updated 2 years ago
  • In Progress
Querying a model with "Query Deleted / Archived records" property true on page load shows archived records. But when querying using skuid action of query model on when tab shown does not show archived records.
Photo of Jayesh Bhatnagar

Jayesh Bhatnagar

  • 636 Points 500 badge 2x thumb

Posted 2 years ago

  • 2
Photo of Chandra V

Chandra V, Champion

  • 7,700 Points 5k badge 2x thumb
Adding on some additional information to this potential bug...

to repro the problem,
- Create a task model (related to any object, our case was to from an Opportunity detail)
- Set the model property to query archived / deleted records TRUE
- Set the model to NOT load on page load

Add a tab set, set the tab action to query your task model
Add a table to display the tasks

With this setup, the archived tasks will not be returned.

If you remove the tab action to query the model, and instead make your model query on page load - the archived tasks are there.

So, model queries that are not performed on page load do not appear to respect the "include archived / deleted records" setting on the model.

This problem is in our production org, on 9.5.6.  I'm not sure if it is a problem in our sandboxes on 10.x ... not sure if we have any archived tasks to test against.
Photo of Stephen Sells

Stephen Sells, Alum

  • 17,326 Points 10k badge 2x thumb
This doesn't sound like fun. I haven't been able to reproduce it in 10.x or 11.x but that could very well be because I don't have the proper set up. Would you mind putting the XML of the broken repro?