Skip to main content

SitecoreAI · Tutorial

Approve a Page's Datasource Items Along With It

Add a Datasource Workflow Action so approving a page also approves its datasource items.

GavAusWeb1 min read

You push a page through workflow, publish it, and components come up empty. The page is approved, but its datasource items are still sitting in Draft, so they don't publish.

The fixLink to this section

Add a Datasource Workflow Action to your page workflow so approving the page approves its datasources too.

  1. Step 1: Find the Approve command

    In the content tree, go to System › Workflows › your page workflow › Awaiting Approval › Approve.

  2. Step 2: Insert the action

    Insert a Datasource Workflow Action item under Approve and fill in its fields:

    • Type string: Sitecore.XA.Foundation.Editing.Workflow.ApplyForDataSourceItemsAction,Sitecore.XA.Foundation.Editing
    • Command item: your datasource workflow's Draft › Approve command
    • Scope: Descendants

Now approving the page approves its datasource items in the same step, and everything is ready for a single publish.