common-publish-item
Publish a Sitecore item by ID or path to a target database such as web or Edge. Use it to make content changes live, with options for recursion, language, and publish mode.
Instructions
Publishes a Sitecore item. On SitecoreAI there is no web database — content publishes to Edge, which lives on Sitecore's cloud servers only, so this works on deployed environments but a local development CM has no publishing target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item that should be published. Supply this or path. | |
| path | No | The path of the item that should be published. Supply this or id. | |
| asJob | No | The Sitecore API called to perform the publish is different with this parameter. | |
| target | No | Specifies the publishing target. The default target database is 'web'. | |
| recurse | No | Publishes the subitems with the root item. | |
| database | No | Database to resolve an id against (default master). | |
| fromDate | No | Publishes items newer than the date provided only. An ISO 8601 date or date-time, e.g. '2026-01-31' or '2026-01-31T09:00:00Z'. | |
| language | No | The language of the item that should be published. Supports globbing/wildcards. | |
| publishMode | No | Specifies the Publish mode. | |
| republishAll | No | Republishes all items provided to the publishing job. | |
| compareRevisions | No | Turns revision comparison on. | |
| publishRelatedItems | No | Publishes the related items. |