Flow Automation: Finding Blog Articles via Action
You can use the Find blog articles action in Flow Automation to retrieve blog articles based on conditions such as author and publication status, then use the results in subsequent actions. For example, you can regularly check for unpublished articles and automatically send email reminders to your content editors, eliminating the need to check each article manually.
This guide explains when to use the action, its fields, supported workflow triggers, how to test it, and a practical example of how to use it.
When to Use the Find Blog Articles Action
You can use the Find blog articles action in the following scenarios:
- Follow up on unpublished articles: Automatically find unpublished blog articles on a regular schedule and remind the relevant team members to review and publish them.
- Find articles by author: Retrieve articles written by a specific author to help plan your content publishing schedule.
- Process multiple articles: Retrieve a list of articles that match your query conditions and use the results in subsequent actions.
Field Descriptions
The Find blog articles action lets you filter blog articles using query conditions, sort the results, and specify how many articles to retain.
| Field | Description |
| Query conditions |
Specify which blog articles to retrieve. Click + Add condition, select one or more conditions, and click Sure. Then enter a value for each condition or click + Add variable to reference a parameter from a previous workflow step. The following query conditions are supported:
|
| How to sort query results (Optional) |
Specifies how the query results are sorted. The sort order determines which articles are retained and the order in which they appear when referenced as variables in subsequent steps. The following sort options are supported:
|
| The quantity to keep in the query result (Optional) | Specifies the maximum number of articles to retain based on the selected sort order, up to 100 articles. |
| Note: In subsequent workflow steps, you can click + Add variable to reference information from the retrieved articles, such as [Article title], [Author], [Summary], [Article URL], [Cover image], [Created at], [Updated at], and [Published at]. |
Applicable Workflows
The Find blog articles action is primarily used in workflows initiated by the following trigger:
- [General] Scheduled time
| Note: For detailed instructions on configuring this trigger, refer to "Flow Automation: Scheduled Trigger." |
Testing the Workflow
To verify that your workflow successfully retrieves blog article information, follow these steps:
-
In your SHOPLINE Admin, go to Online Store > Blog and make sure you have at least one unpublished article. If you don't, click Create a blog to create a test article and save it without publishing.
- In Flow Automation, create a workflow using the Scheduled time trigger and the Find blog articles action. Configure the following settings:
- Scheduled time: Set First trigger time to a few minutes from now and Repeat or not to Not repeating.
- Find blog articles: Add the Publication status: published, unpublished, or any (published_status) query condition and set its value to unpublished.
- After configuring the workflow, click Publish.
-
Once the scheduled trigger time has passed, return to Flow Automation and check the workflow execution results.
Note: For more information on monitoring workflow executions, refer to the "How to View the Running of a Flow" section in the "Introduction to Flow Automation" guide. - In the execution results, confirm that the Find blog articles action successfully returned the details of your test article.
Example Use Case
The following example demonstrates how to use the Find blog articles action to automatically remind content editors to follow up on unpublished articles.
Scenario: Every Monday at 10:00 AM, the workflow retrieves unpublished blog articles and sends a separate email reminder for each article, prompting your content editor to review and schedule it for publication.
Configure the workflow as follows:
-
Trigger: Scheduled time
- First trigger time: Next Monday at 10:00 AM
- Repeat or not: Repeat weekly
- Action: Find blog articles
-
Query conditions: published_status = unpublished
- How to sort query results: flowApp.created_at_desc
- The quantity to keep in the query result: 20
- Action: For each loop (iterate) (repeats the following step for each article found)
-
Action: Send email
- Subject: Unpublished Blog Post: [Article title]
- Content: The blog post "[Article title]" (Author: [Author]) has not been published yet. Please go to Online Store > Blog in your SHOPLINE Admin to review and schedule it for publication.
- Recipient: Your content editor's email address
Outcome: Your content editor receives a separate email reminder for each retrieved unpublished article every Monday, helping them stay on top of pending publications and prevent articles from remaining unpublished for too long.
|
Notes:
|
Usage Limits & Notes
When using the Find blog articles action, keep the following in mind:
- Query only: This action only retrieves article data and does not modify articles. To perform additional operations based on the query results, add the corresponding actions to your workflow.
- Result limit: You can retain up to 100 articles per query. If more articles match your conditions, add additional query conditions to narrow the results.
- No matching results: If no articles match your query conditions, the action returns an empty result.