Skip to main content

Understanding Store Subscriptions

Learn how to use subscription expressions to filter data from stores in source connections

Updated today

What are Store Subscriptions?

Store subscriptions allow you to filter which data from a store will be used in your source connection. When you select a store as your source type, you can define a subscription expression that determines which documents or data objects will be included.

Configuring a Subscription

To configure a store subscription:

  1. Select Store as your source type

  2. Choose the store you want to subscribe to from the Resource dropdown

  3. Enter your subscription expression in the Subscription field

Subscription Expressions

Subscription expressions are written in Groovy and allow you to define filtering logic. Common patterns include:

  • All documents: Leave blank or use true

  • Filter by status: document.status == 'READY'

  • Filter by metadata: document.metadata.type == 'invoice'

  • Date-based filters: document.createdDate > Date.parse('yyyy-MM-dd', '2024-01-01')

Examples

Subscribe to All Documents

true

Subscribe to Documents with Specific Status

document.status == 'PROCESSED'

Subscribe to Recent Documents

document.createdDate > new Date() - 7

Best Practices

  • Test your subscription expression with a small dataset first

  • Use clear, readable expressions that are easy to maintain

  • Consider performance when filtering large stores

  • Document complex subscription logic in your project notes

Did this answer your question?