Disable products in Resource Picker to prevent selection?

Topic summary

A developer is implementing Shopify’s App Bridge Resource Picker to allow product selection but needs to prevent users from selecting certain products based on a predefined list of product IDs.

Current Implementation:

  • Using shopify.resourcePicker() with type ‘product’
  • Currently only filtering out products without variants

Specific Questions:

  1. Can products be directly disabled within the Resource Picker interface?
  2. Are there workarounds or alternative approaches if native disabling isn’t supported?

Status: The question remains unanswered with no responses yet. The developer is seeking either a built-in solution or a workaround to restrict product selection based on custom criteria.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m using the the Resource Picker from Shopify App Bridge to allow users to select products in my app. Here’s a snippet of my current implementation:

const selected = await shopify.resourcePicker({
    type: 'product',
    filter: {
        variants: false, // Example: filtering products without variants
    },
});

What I want to achieve is to disable certain products in the Resource Picker, so users cannot select them. For example, I want to prevent the selection of products in list of my product ids.

My questions are:

  1. Is there a way to disable some products in the Resource Picker?
  2. If disabling isn’t supported directly, is there any workaround or alternative approach to accomplish this?

Thanks in advance!