Skip to content

Add ability to undelete selected records from Query tab #149

Description

@bct8925

Problem / Motivation

When working with deleted Salesforce records in the Query tab (with "show deleted" enabled), there is no way to recover them directly from the extension. Users who accidentally delete records or need to restore them must switch to other tools or use the Salesforce API manually.

With multiselect and delete functionality already available in the query results table, adding an undelete option is a natural complement that completes the record lifecycle management within the extension.

Desired Behavior

  • When "show deleted" is enabled in the Query tab, selected deleted records should show an "Undelete" action option
  • The undelete option should only be visible/enabled when "show deleted" is active — it should not appear during normal (non-deleted) query results viewing
  • Users should be able to select one or more deleted records using the existing multiselect functionality and undelete them in bulk
  • After undeleting, the query results should refresh to reflect the restored records

Additional Context

  • This builds on the existing multiselect and delete record functionality in the query results table
  • Salesforce provides an undelete sObject REST API endpoint that can be used for this
  • This completes the delete/undelete lifecycle within the Query tab

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions