<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roshan Ravaliya</title>
    <description>The latest articles on DEV Community by Roshan Ravaliya (@roshan_ravaliya_c84c08f79).</description>
    <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3746726%2F332e3a2b-bcdb-493f-823e-770c56e63aa0.png</url>
      <title>DEV Community: Roshan Ravaliya</title>
      <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roshan_ravaliya_c84c08f79"/>
    <language>en</language>
    <item>
      <title>Automating Bulk Content Authoring in SitecoreAI with PowerShell Extensions</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Sun, 31 May 2026 14:07:32 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/automating-bulk-content-authoring-in-sitecoreai-with-powershell-extensions-3g9f</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/automating-bulk-content-authoring-in-sitecoreai-with-powershell-extensions-3g9f</guid>
      <description>&lt;p&gt;Modern CMS platforms excel at managing content, but large-scale content updates remain one of the biggest operational challenges for content teams.   While SitecoreAI provides powerful component-based architectures, authors are often responsible for manually creating datasources, configuring components, and assigning presentation details across hundreds of pages.   At enterprise scale, this process quickly becomes a bottleneck.  &lt;/p&gt;

&lt;p&gt;Reducing 140+ hours of manual CMS work to under 30 minutes using SPE automated data source scaffolding, intelligent link resolution, and audit reporting from a single Ribbon button.  &lt;/p&gt;

&lt;h2&gt;
  
  
  The Business Challenge
&lt;/h2&gt;

&lt;p&gt;Enterprise SitecoreAI implementations constantly face one tension: developers build robust, reusable components, but content authors still bear the burden of wiring them up manually, one page at a time.  &lt;/p&gt;

&lt;p&gt;A seasonal campaign might require component updates across hundreds of category pages, multiple product series pages, several regional websites, and multiple language versions.   For each page, the content author must complete a predictable sequence of manual steps:  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Time per Page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Create data folder&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create datasource item&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create child items (slides, etc.)&lt;/td&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configure CTA links&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assign datasource to rendering&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validate content&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total per page&lt;/td&gt;
&lt;td&gt;~17 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At 500 pages, that is 8,500 minutes, roughly 142 hours of uninterrupted, error-prone, repetitive work.  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;142h&lt;/td&gt;
&lt;td&gt;Manual effort (before)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;30m&lt;/td&gt;
&lt;td&gt;Automated runtime (after)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;Pages updated per run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;THE GOAL&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Enable content authors to update hundreds of components through a single automated process while maintaining governance, consistency, and full auditability.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why SitecoreAI PowerShell Extensions?
&lt;/h2&gt;

&lt;p&gt;There are several ways to approach content automation in SitecoreAI: custom admin applications, scheduled jobs, external integration services, and tools built on the SitecoreAI API.   For this scenario, SPE offered a decisive combination of advantages.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Native SitecoreAI Integration
&lt;/h3&gt;

&lt;p&gt;SPE provides direct, first-class access to content items, templates, the Media Library, presentation details, layout renderings, languages, and workflows with no additional abstraction layers.  &lt;/p&gt;

&lt;h3&gt;
  
  
  No Deployment Pipeline Required
&lt;/h3&gt;

&lt;p&gt;Scripts live inside SitecoreAI itself and can be updated directly in the Script Library.   Changes are immediate and require no build, package, or deployment cycle.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Author-Friendly Exposure
&lt;/h3&gt;

&lt;p&gt;SPE scripts can be surfaced as Content Editor Ribbon buttons, meaning content authors trigger complex automation without accessing any external tool or developer console.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Built-In Reporting
&lt;/h3&gt;

&lt;p&gt;SPE's Show-ListView provides an immediate audit report with zero custom UI development invaluable for operations teams that need visibility without building a dashboard.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Solution Architecture
&lt;/h2&gt;

&lt;p&gt;The end-to-end workflow follows a linear pipeline from a CSV file stored in the Media Library through to fully configured, presentation-injected pages:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CSV stored in the SitecoreAI Media Library
&lt;/li&gt;
&lt;li&gt;Ribbon command triggers the SPE script
&lt;/li&gt;
&lt;li&gt;Language selection dialog
&lt;/li&gt;
&lt;li&gt;CSV read and parsed with UTF-8 encoding
&lt;/li&gt;
&lt;li&gt;Target page located by stable business identifier
&lt;/li&gt;
&lt;li&gt;Data folder created if missing
&lt;/li&gt;
&lt;li&gt;Datasource item created if missing
&lt;/li&gt;
&lt;li&gt;Child items generated (slides, etc.)
&lt;/li&gt;
&lt;li&gt;CTA links resolved, internal path, GUID, or external URL
&lt;/li&gt;
&lt;li&gt;Datasource injected into the rendering via Presentation Details
&lt;/li&gt;
&lt;li&gt;Audit report displayed via Show-ListView
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This pipeline allows content teams to execute large-scale updates without any developer involvement after initial setup.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Step-by-Step Walkthrough
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1 Ribbon Entry Point with Language Selection
&lt;/h3&gt;

&lt;p&gt;The script is registered in the SPE Script Library.   When an author clicks the Ribbon button, a dialog collects the target language before any processing begins.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$languageOptions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ordered&lt;/span&gt;&lt;span class="p"&gt;]@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Norwegian (nb-NO)"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"nb-NO"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"English (en)"&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Read-Variable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Title&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Import Content"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Description&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Select the target language for this import."&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Parameters&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@(&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;@{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"targetLanguage"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Title&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Target Language"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Options&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$languageOptions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-ne&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;Exit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;WHY THIS MATTERS&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
This guard step prevents accidental imports into the wrong language version a common and painful mistake in multilingual implementations.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 2 CSV Stored in the Media Library
&lt;/h3&gt;

&lt;p&gt;Storing the import file in the Media Library rather than a local file path is a deliberate architectural choice.   Local paths break in cloud environments and create governance issues.   A Media Library item is XM Cloud-compatible, centrally managed, and replaceable without developer access.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$mediaItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"master:&lt;/span&gt;&lt;span class="nv"&gt;$csvFilePath&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ErrorAction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Stop&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$mediaItem&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Fields&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Blob"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetBlobStream&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Length&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Out-Null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$csvData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;System.Text.Encoding&lt;/span&gt;&lt;span class="p"&gt;]::&lt;/span&gt;&lt;span class="n"&gt;UTF8.GetString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="n"&gt;ConvertFrom-Csv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Delimiter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3 Locating Target Pages by Business ID
&lt;/h3&gt;

&lt;p&gt;Pages are matched by a stable business identifier field rather than by content path.   Paths change when items are renamed or moved; business identifiers remain stable across reorganisations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$categoryRoot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Recurse&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"WebCategoryId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$row&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WebCategoryId&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4 Automatic Datasource Scaffolding
&lt;/h3&gt;

&lt;p&gt;If a page does not already have the required datasource structure, the script creates it automatically.   This idempotent check-and-create pattern makes the solution safe to run repeatedly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create Data folder if missing&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Data"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;                           &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Data"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ItemType&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolderTemplateId&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="c"&gt;# Create datasource item if missing&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;                     &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ItemType&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$componentTemplateId&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5 Intelligent CTA Link Resolution
&lt;/h3&gt;

&lt;p&gt;Content authors provide links in whatever format they have SitecoreAI content paths, GUIDs, or external URLs.   The script detects the format and writes the correct SitecoreAI link XML automatically.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-like&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/sitecore/content/*"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-or&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"^\{?[A-Fa-f0-9\-]{36}\}?$"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;

    &lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"master:&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ErrorAction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;SilentlyContinue&lt;/span&gt;&lt;span class="w"&gt;

    &lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nv"&gt;$itemLang&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CTA"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;link text=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$text&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; linktype=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt;internal&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; id=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ID&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; /&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$itemLang&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CTA"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;link text=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$text&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; linktype=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt;external&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; url=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; /&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6 Idempotent Item Creation
&lt;/h3&gt;

&lt;p&gt;The script checks for an existing item by its ExternalId field before creating a new one. Re-running the import updates existing content rather than duplicating it critical for production systems.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ExternalId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$row&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItemId&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="c"&gt;# update in-place&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="c"&gt;# create new&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 7 Automated Datasource Injection
&lt;/h3&gt;

&lt;p&gt;Creating the datasource item is only half the job.   The rendering must also reference it.   Without this step, the page would have a correctly structured datasource that the component never reads.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-LayoutDevice&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Default&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$renderings&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Rendering&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Device&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;foreach&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$renderings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItemID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$componentRenderingId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="n"&gt;Set-Rendering&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Instance&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Device&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;WHAT THIS REPLACES&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Without automation, assigning a datasource requires opening Experience Editor, selecting the component, opening rendering properties, browsing to the datasource, and saving five manual steps per page, at 500 pages.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 8 Audit Report
&lt;/h3&gt;

&lt;p&gt;Every action is captured in a structured collection and displayed at the end of execution.   Authors see successful imports, failures, skipped records, and validation warnings without digging through logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$reportData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;PSCustomObject&lt;/span&gt;&lt;span class="p"&gt;]@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Page Name"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Name&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Page ID"&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ID&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Type"&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Status"&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Success"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Log"&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Datasource assigned"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$reportData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Show-ListView&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Title&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;"Content Import Audit Report"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-PageSize&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;100&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Property&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Page Name"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Page ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Type"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Status"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Log"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Production Hardening
&lt;/h2&gt;

&lt;p&gt;Enterprise automation should anticipate edge cases, not just the happy path.   The script includes explicit guards for the most common failure scenarios at scale:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing pages: log a clear error with the business ID and continue processing remaining rows.   Never abort the full import for one bad row.
&lt;/li&gt;
&lt;li&gt;Missing templates: throw early with a descriptive message if a template ID is not configured.
&lt;/li&gt;
&lt;li&gt;Missing language versions: automatically create using Add-ItemVersion before populating fields.
&lt;/li&gt;
&lt;li&gt;Missing images: log a warning and continue.   The import should not fail because a single media path is incorrect.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deploying the Script in SitecoreAI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Go to SitecoreAI content editor
&lt;/li&gt;
&lt;li&gt;Go to System &amp;gt; Modules &amp;gt; Powershell &amp;gt; script library
&lt;/li&gt;
&lt;li&gt;Create new PowerShell Script Module Folder
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5etyzlodpftczjtsgxl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5etyzlodpftczjtsgxl.png" alt=" " width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Under the new folder create new module using Module Wizard
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeim8lthulfhcikepi2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeim8lthulfhcikepi2c.png" alt=" " width="610" height="830"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create PowerShell Script Library under /sitecore/system/Modules/PowerShell/Script Library/Content/Content Tools/Content Editor/Ribbon/Home
&lt;/li&gt;
&lt;li&gt;Create PowerShell Script under newly created PowerShell Script Library
&lt;/li&gt;
&lt;li&gt;Paste your PS Script in Script body field
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcnuqlyysalm6c0i3fcn4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcnuqlyysalm6c0i3fcn4.png" alt=" " width="799" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rebuild the module
&lt;/li&gt;
&lt;li&gt;After rebuild it is reflected in Home section in top bar like Import Hero Banners.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results and Business Impact
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time per page&lt;/td&gt;
&lt;td&gt;~17 minutes&lt;/td&gt;
&lt;td&gt;Automated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500-page campaign&lt;/td&gt;
&lt;td&gt;~142 hours&lt;/td&gt;
&lt;td&gt;Under 30 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Re-run safety&lt;/td&gt;
&lt;td&gt;Manual debug&lt;/td&gt;
&lt;td&gt;Idempotent by design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audit trail&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Full Show-ListView report&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The most important result is not the time saved it is the operational model it enables.   Content teams can now execute large-scale campaign launches without developer involvement, without risking inconsistency, and without a support ticket for every missed datasource assignment.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY TAKEAWAY&lt;/strong&gt;&lt;br&gt;
The true value of automation in this context is not reducing clicks. It is enabling content teams to operate at enterprise scale without proportionally increasing operational complexity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For SitecoreAI teams working in headless and XM Cloud environments, patterns like this are a baseline capability for managing content efficiently across large digital estates. What once required close to four weeks of focused manual effort can now be triggered with a single Ribbon button click.&lt;/p&gt;

</description>
      <category>sitecoreai</category>
      <category>automation</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>SitecoreAI Deployments: The Shift from Legacy to Decoupled Architecture</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Mon, 30 Mar 2026 12:34:30 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</guid>
      <description>&lt;p&gt;When enterprise teams migrate to SitecoreAI (XM Cloud), they celebrate the shift to a headless, composable, and AI-driven architecture. However, a common technical trap awaits them during the DevOps setup: &lt;/p&gt;

&lt;p&gt;“&lt;em&gt;&lt;strong&gt;how you deploy your frontend matters just as much as how you build it&lt;/strong&gt;&lt;/em&gt;.” &lt;/p&gt;

&lt;p&gt;This decision directly impacts: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Release velocity
&lt;/li&gt;
&lt;li&gt;Developer experience
&lt;/li&gt;
&lt;li&gt;Deployment speed
&lt;/li&gt;
&lt;li&gt;Production risk &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the SitecoreAI ecosystem, there are two primary ways to deploy your Next.js application: the Integrated (Coupled) approach via the Sitecore Deploy App, and the true Decoupled approach using independent CI/CD pipelines. &lt;/p&gt;

&lt;p&gt;Decoupling in SitecoreAI isn’t just an architectural choice it’s the difference between treating your frontend as a deployable product versus a dependency of your CMS &lt;/p&gt;

&lt;p&gt;Let’s break down the architectures, execution behaviours, and why enterprise teams are standardizing on the decoupled model. &lt;/p&gt;

&lt;p&gt;In this guide, we’ll break down: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Coupled vs Decoupled deployment in SitecoreAI &lt;/li&gt;
&lt;li&gt;Real-world system behaviour
&lt;/li&gt;
&lt;li&gt;Architecture patterns
&lt;/li&gt;
&lt;li&gt;Pros, cons, and when to choose each &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is Coupled vs Decoupled Deployment in SitecoreAI
&lt;/h2&gt;

&lt;p&gt;In Sitecore AI, there are two primary deployment models: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) Coupled (Integrated) Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managed via SitecoreAI Deploy App
&lt;/li&gt;
&lt;li&gt;Backend (CM) + Frontend (Next.js) deployed together
&lt;/li&gt;
&lt;li&gt;Single pipeline
&lt;/li&gt;
&lt;li&gt;One pipeline control everything
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment
&lt;/li&gt;
&lt;li&gt;Deployments act as a monolith.
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment must trigger a deployment through Sitecore. &lt;/li&gt;
&lt;li&gt;Typical Flow:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git → Deploy App → CM + Edge + Frontend → Live 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 15–30 minutes &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) Decoupled Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend and frontend deployed independently
&lt;/li&gt;
&lt;li&gt;Separate CI/CD pipelines
&lt;/li&gt;
&lt;li&gt;Frontend hosted on: 

&lt;ul&gt;
&lt;li&gt;Vercel
&lt;/li&gt;
&lt;li&gt;Netlify
&lt;/li&gt;
&lt;li&gt;BYOF (Bring Your Own Frontend) &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Flow
&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Backend: Git → Deploy App → CM + Edge
- Frontend: Git → Vercel → Live
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 

&lt;ul&gt;
&lt;li&gt;Small apps: 2–5 minutes
&lt;/li&gt;
&lt;li&gt;Enterprise apps: 5–10 minutes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  The Architecture: Coupled vs. Decoupled
&lt;/h3&gt;

&lt;p&gt;To understand the difference, we must trace how code moves from your repository to the delivery edge. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) The Coupled (Integrated) Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this legacy model, the Sitecore Deploy App acts as the monolithic orchestrator for your entire stack. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your GitHub/Azure DevOps repository is connected directly to the SitecoreAI Deploy App. &lt;/li&gt;
&lt;li&gt;When a deployment is triggered, SitecoreAI builds BE and FE, pushes schema changes to Experience Edge, and then pushes the Next.js frontend code to the Sitecore-managed rendering host - all in the same pipeline instance. &lt;/li&gt;
&lt;li&gt;Git → Deploy App → CM + Edge + FE → Live &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) The Decoupled Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this model, the CMS backend and the Next.js frontend are treated as completely independent microservices. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline A (The CMS)&lt;/strong&gt;: The SitecoreAI Deploy App is strictly responsible for building the CM server and pushing backend schema/configuration changes to the Authoring environment. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline B (The Frontend)&lt;/strong&gt;: The Next.js application is built and deployed via its own pipeline. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BE:&lt;/strong&gt; Git → Deploy App → CM + Edge &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FE:&lt;/strong&gt; Git → Vercel → FE &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you place both the backend and frontend in the same repository (Monorepo), the Authoring environment pipeline will completely ignore the frontend code, and the Delivery pipeline will ignore the backend code.  &lt;/p&gt;

&lt;p&gt;Alternatively, you can physically split them into two different repositories (Polyrepo). &lt;/p&gt;




&lt;h3&gt;
  
  
  The Two Flavors of Decoupled Frontend Hosting:
&lt;/h3&gt;

&lt;p&gt;When decoupling, you have two options for hosting your Next.js delivery layer: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Option A&lt;/strong&gt;: Sitecore-Managed (Inbuilt Vercel): You utilize the Vercel infrastructure provisioned and managed by Sitecore under the hood. It provides a managed Editing Host, but you still decouple the deployment triggers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: You can not use public url for this environment for the preview site, it is useful Page builder and experience editor only.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Option B&lt;/strong&gt;: Bring Your Own Frontend (BYOF - External): You connect your own enterprise Vercel or Netlify account directly to your repository. This requires manual configuration but offers ultimate DevOps control. &lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;h4&gt;
  
  
  Architectural Implementation Steps
&lt;/h4&gt;

&lt;p&gt;Moving to a decoupled setup requires re configuring your pipelines to isolate the delivery edge. Here is the architectural flow: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Establish the CMS Pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the SitecoreAI Cloud Portal, configure your Deploy App to only build the CM environment. &lt;/li&gt;
&lt;li&gt;Disable any integrated frontend rendering host configurations if moving entirely to BYOF.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Choose and Configure the Frontend Pipeline&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If using BYOF (External Vercel/Netlify): Go directly to your external hosting provider. Create a new project, point it to your repository, and specify the root directory of your Next.js application. &lt;/p&gt;

&lt;p&gt;-Note: Manually configure all variable in step 3&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If using Sitecore-Managed (Inbuilt Vercel): Ensure your editing host is configured within your xmcloud.build.json to point to the correct Next.js application path, but rely on external webhooks to trigger UI-only builds if supported by your tier. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: Sitecore configure all required variable automatically, No need to do Step 3 &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Map the Environment Variables&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Because Sitecore is no longer auto-injecting environment variables into the delivery host, you must map them manually in your frontend host. Crucial variables include: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SITECORE_API_KEY (Your Experience Edge Token) &lt;/li&gt;
&lt;li&gt;SITECORE_API_HOST (The Experience Edge GraphQL endpoint) &lt;/li&gt;
&lt;li&gt;JSS_APP_NAME (The name of your site configuration) &lt;/li&gt;
&lt;li&gt;GRAPH_QL_ENDPOINT (The endpoint for the delivery layer)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Configure CI/CD Hooks&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up GitHub Actions, Azure Pipelines, or Vercel webhooks to trigger frontend builds automatically upon merging to your main or staging branches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common Troubleshooting Scenarios&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Experience Editor breaks due to incorrect editing host setup &lt;/li&gt;
&lt;li&gt;Mismatched GraphQL schemas between FE and Edge &lt;/li&gt;
&lt;li&gt;Environment variable drift between environments &lt;/li&gt;
&lt;li&gt;Preview vs Delivery endpoint confusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pros and Cons&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coupled (Legacy) Deployment&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Simplicity: A single pane of glass for all deployments in the Sitecore Cloud Portal. &lt;/li&gt;
&lt;li&gt;Beginner Friendly: SitecoreAI handles the Edge and Editing Host environment variable mapping automatically. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Slow Feedback Loop: Frontend deployments take drastically longer because they wait on CM orchestration. &lt;/li&gt;
&lt;li&gt;Difficult Rollbacks: Rolling back a bad frontend deployment often means reverting the entire CM state. &lt;/li&gt;
&lt;li&gt;Lack of DevOps Control: You cannot easily utilize advanced CI/CD testing steps (like Playwright or Cypress) before the frontend deploys. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Decoupled Deployment &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blazing Fast Iteration: Frontend deployments finish in minutes. &lt;/li&gt;
&lt;li&gt;Independent Rollbacks: Revert a bad UI push instantly without affecting the CMS backend. &lt;/li&gt;
&lt;li&gt;Security &amp;amp; Access: Frontend developers don't need access to the Sitecore Cloud Portal to do their jobs. &lt;/li&gt;
&lt;li&gt;Reduced frontend deployment time by 80% &lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;br&gt;
      - Manual Configuration: You must manage API keys, webhooks, and environment variables manually. &lt;br&gt;
      - Two Pipelines: DevOps teams must monitor two separate deployment streams. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;th&gt; Feature &lt;/th&gt;
&lt;th&gt; Coupled (Integrated) &lt;/th&gt;
&lt;th&gt; Decoupled (Standalone) &lt;/th&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend Deploy Speed &lt;/td&gt;
&lt;td&gt;15 - 30+ Minutes &lt;/td&gt;
&lt;td&gt;2 - 5 Minutes (small Apps) 


5 – 10 minutes (Enterprise Apps) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollback Complexity &lt;/td&gt; &lt;td&gt;High (Tied to CM state) &lt;/td&gt; &lt;td&gt;Low (Instant via Vercel/Netlify) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI/CD Customization &lt;/td&gt;
&lt;td&gt;Limited &lt;/td&gt;
&lt;td&gt;Unlimited (GitHub Actions, etc.) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup Effort &lt;/td&gt;
&lt;td&gt;Low (Out of the box) &lt;/td&gt;
&lt;td&gt;Medium (Requires manual Env Vars) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best For &lt;/td&gt;
&lt;td&gt;POCs, Sandboxes, Small Teams &lt;/td&gt;
&lt;td&gt;Enterprise, Agile Teams, Production &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h4&gt;
  
  
  When is Decoupled NOT the Right Choice?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Small teams without DevOps expertise &lt;/li&gt;
&lt;li&gt;POCs or hackathons &lt;/li&gt;
&lt;li&gt;Projects with minimal frontend changes &lt;/li&gt;
&lt;li&gt;Teams heavily reliant on Experience Editor with no FE team&lt;/li&gt;
&lt;/ul&gt;




&lt;h4&gt;
  
  
  Why Enterprises Prefer Decoupled XM Cloud
&lt;/h4&gt;

&lt;p&gt;While the Coupled deployment model is excellent for a quick Proof of Concept, the Decoupled architecture is the undisputed best practice for production environments. &lt;/p&gt;

&lt;p&gt;The core promise of a headless CMS is agility. If your frontend developers are forced to wait for a monolithic backend deployment pipeline just to update a button color, you have lost the primary benefit of headless architecture like Release velocity, Team independence, Parallel development. &lt;/p&gt;

&lt;p&gt;Decoupling your deployments aligns perfectly with modern software engineering principles:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separation of Concerns: The delivery layer (Next.js) and the authoring layer (CM) have different lifecycles and should fail or succeed independently. &lt;/li&gt;
&lt;li&gt;Developer Experience (DevEx): Frontend engineers can work entirely within their native tools (Vercel, GitHub) without navigating Sitecore portals. &lt;/li&gt;
&lt;li&gt;Risk Mitigation: Isolating the delivery pipeline ensures that an error in a custom backend Sitecore pipeline won't prevent you from pushing a critical UI hotfix to your live website. &lt;/li&gt;
&lt;li&gt;Reduce Deployment time more than 70%
&lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Untangle your pipelines, secure your Edge tokens, and let your frontend run free. &lt;/p&gt;




&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;Decoupling in SitecoreAI is not just an optimization-it’s a mindset shift. &lt;/p&gt;

&lt;p&gt;You move from: &lt;/p&gt;

&lt;p&gt;-&lt;strong&gt;&lt;em&gt;“Frontend as part of CMS”&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;“Frontend as an independent product”&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And that changes everything. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation References&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To explore the technical specifications of these architectures, refer to the official Sitecore documentation: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.google.com/search?q=https://doc.sitecore.com/xmc/en/developers/xm-cloud/walkthrough--setting-up-a-headless-project-with-byof.html" rel="noopener noreferrer"&gt;Walkthrough: Setting up a headless project with BYOF (Bring Your Own Frontend) &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/the-xm-cloud-build-configuration.html" rel="noopener noreferrer"&gt;Sitecore XM Cloud Deploy App Architecture &amp;amp; Build Configurations&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>cicd</category>
      <category>devops</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Turbocharge Your Content with Sitecore AI Publishing V2</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Sat, 21 Feb 2026 14:22:20 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</guid>
      <description>&lt;p&gt;If you have worked with Sitecore AI (XM Cloud), you already know: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishing performance directly impacts delivery speed and author productivity. &lt;/li&gt;
&lt;li&gt;For a long time, Snapshot Publishing (V1) powered Sitecore AI content delivery. It worked but as projects scaled, publishing times increased, CM servers became overloaded, and queues slowed down deployments. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, Sitecore introduces a modern, cloud-native approach: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Experience Edge Runtime (Publishing V2)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s explore what changed and why it matters. &lt;/p&gt;

&lt;h3&gt;
  
  
  The Bottleneck: Publishing V1 (Snapshot-Based)
&lt;/h3&gt;

&lt;p&gt;In Publishing V1, when you publish a page, the CM server performs heavy processing before the content even reaches Experience Edge&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculated the entire layout. &lt;/li&gt;
&lt;li&gt;Resolved all data sources. &lt;/li&gt;
&lt;li&gt;Executed Layout Service pipes. &lt;/li&gt;
&lt;li&gt;Created a massive, static JSON blob (a "Snapshot") to send to Experience Edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Result:&lt;/strong&gt; Publishing a simple page update could take minutes. Even a small content change requires rebuilding the entire page structure. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;As your site grows:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Layout complexity increases &lt;/li&gt;
&lt;li&gt;Datasource relationships multiply &lt;/li&gt;
&lt;li&gt;CPU usage on CM rises &lt;/li&gt;
&lt;li&gt;Publish queues grow longer &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What once took seconds can quickly turn into minutes. &lt;/p&gt;

&lt;p&gt;And at scale, this affects both publishing speed and authoring performance. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution: Publishing V2 (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sitecore AI introduced a new way to publish content: &lt;strong&gt;Publishing V2&lt;/strong&gt; (also known as &lt;strong&gt;Edge Runtime&lt;/strong&gt; mode). It sounds technical, but it’s a beautiful simplification of how data moves. &lt;/p&gt;

&lt;p&gt;Publishing V2 changes the architecture entirely. &lt;/p&gt;

&lt;p&gt;Instead of pre-calculating the full layout JSON on the CM server, Sitecore now: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishes raw item data &lt;/li&gt;
&lt;li&gt;Publishes layout references &lt;/li&gt;
&lt;li&gt;Defers JSON assembly to the Edge runtime&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final JSON response is assembled dynamically on the Experience Edge delivery layer not on CM. &lt;/p&gt;

&lt;p&gt;This shifts the workload from the single CM instance to the massively scalable Edge CDN. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The "Cake" Analogy: V1 vs. V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To understand the difference, imagine you are sending a cake to a friend. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publishing V1 (Snapshot):&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;You bake the cake, frost it, box it up, and ship the entire heavy box. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore calculates the entire layout JSON on the CM server and sends a massive static blob to Experience Edge. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Slow and heavy.
&lt;/li&gt;
&lt;li&gt;If you change one ingredient, you must bake the whole cake again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Publishing V2 (Edge Runtime):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You just send the &lt;strong&gt;recipe&lt;/strong&gt; and the &lt;strong&gt;ingredients&lt;/strong&gt;. Your friend (Experience Edge) assembles the cake instantly when someone asks for it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore sends only the raw item data and layout references. Experience Edge assembles the JSON at "runtime" when the API is called. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Lightning fast.
&lt;/li&gt;
&lt;li&gt;You only ship the tiny changes. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Architecture Comparison&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;V1 Flow (Snapshot Publishing)&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Layout Service Processing → Full JSON Snapshot → Experience Edge → CDN → Frontend &lt;/li&gt;
&lt;li&gt;Everything is assembled on CM before delivery. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;V2 Flow (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Raw Items + Layout References → Edge Worker Runtime → JSON Assembly → CDN → Frontend &lt;/li&gt;
&lt;li&gt;JSON is assembled at request time by the Edge worker.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" alt="V1 vs V2" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Advantages of Publishing V2 &lt;/p&gt;

&lt;p&gt;1). Blazing Fast Publish Times &lt;/p&gt;

&lt;p&gt;Since layout JSON is no longer generated on CM, publish jobs typically complete in seconds rather than minutes. &lt;/p&gt;

&lt;p&gt;This is especially noticeable on: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large component-based pages &lt;/li&gt;
&lt;li&gt;Sites with heavy personalization &lt;/li&gt;
&lt;li&gt;Complex layout structures &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2️). Better CM Performance &lt;br&gt;
The CM instance is no longer CPU-bound by layout assembly. &lt;/p&gt;

&lt;p&gt;This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better authoring performance &lt;/li&gt;
&lt;li&gt;Higher concurrency &lt;/li&gt;
&lt;li&gt;Multiple publish jobs can run safely &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3️). True Scalability &lt;/p&gt;

&lt;p&gt;Processing shifts to the globally distributed Experience Edge runtime designed for high availability and horizontal scaling. &lt;/p&gt;

&lt;p&gt;Your publishing performance now scales with Edge infrastructure, not your CM size. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important Behavioral Change: Strict Dependencies&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is where V2 requires architectural awareness. &lt;/p&gt;

&lt;p&gt;In V1: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The snapshot captured fully resolved data at publish time. &lt;/li&gt;
&lt;li&gt;Previously resolved data could still exist inside snapshots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In V2: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON is assembled at request time. &lt;/li&gt;
&lt;li&gt;If a datasource item is not published, it does not exist in the GraphQL response.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;This can result in:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Empty components &lt;/li&gt;
&lt;li&gt;Missing navigation items &lt;/li&gt;
&lt;li&gt;Incomplete JSON output &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Practice:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Always use: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publish Related Items &lt;/li&gt;
&lt;li&gt;Or ensure parent and datasource items are included in the publish job.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Caching Behavior in V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;V2 invalidates cache per item ID. &lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not automatically invalidate related items&lt;/strong&gt; such as: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parent navigation &lt;/li&gt;
&lt;li&gt;Sibling teasers &lt;/li&gt;
&lt;li&gt;Shared components&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a shared data source changes, and parents are not published, you may see stale content. &lt;/p&gt;

&lt;p&gt;Always plan publish dependency carefully. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Implement (The "Switch")&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;No code changes required. No config patching. No redeployment of frontend. &lt;/p&gt;

&lt;p&gt;You can do this directly in the Sitecore AI Deploy Portal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Log in to the &lt;a href="https://deploy.sitecorecloud.io/" rel="noopener noreferrer"&gt;SitecoreAI Deploy&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Select your Project and Environment (e.g., Production, QA, or Development).  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Go to the Variables tab.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Click Create Variable and add the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name: Sitecore_ExperienceEdge_dot_WorkerStoreEnabled  &lt;/li&gt;
&lt;li&gt;Value: TRUE
&lt;/li&gt;
&lt;li&gt;Target: CM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" alt="Screenshot" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Save and deploy your environment.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Once deployment completes, Republish all sites in the environment. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Deployment + full republish is required for activation. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To revert to V1:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the variable Sitecore_ExperienceEdge_dot_WorkerStoreEnabled to FALSE. &lt;/li&gt;
&lt;li&gt;Redeploy the environment &lt;/li&gt;
&lt;li&gt;Delete Edge content
&lt;/li&gt;
&lt;li&gt;Republish all sites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Frontend Impact: The Best News&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is the "sweetest" part of the update. &lt;/p&gt;

&lt;p&gt;Do not need to change your Next.js API endpoints. &lt;/p&gt;

&lt;p&gt;Even though the backend architecture has completely changed, the Frontend Contract remains the same.&lt;/p&gt;

&lt;p&gt;✔ Your Endpoint: Remains &lt;a href="https://edge.sitecorecloud.io/api/graphql/v1" rel="noopener noreferrer"&gt;https://edge.sitecorecloud.io/api/graphql/v1&lt;/a&gt; &lt;br&gt;
✔ Your Query: Remains exactly the same. &lt;br&gt;
✔ Your JSON Response: Look exactly the same. &lt;br&gt;
✔ Require zero refactoring &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;The change from V1 to V2 is purely architectural (Backend/Ingestion). It changes how data gets into the Edge, but it does not change Delivery how read it out. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;V1: Edge reads a pre-baked JSON blob. &lt;/li&gt;
&lt;li&gt;V2: Edge reads references and assembles the JSON blob on the fly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-World Impact&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;In enterprise implementations, teams have observed: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Homepage publish time reduced from minutes to seconds &lt;/li&gt;
&lt;li&gt;Massive reduction in publish queue backlogs &lt;/li&gt;
&lt;li&gt;Improved CM responsiveness during large content pushes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For content-heavy, composable architectures, this is a game-changing improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Verdict&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Publishing V2 (Experience Edge Runtime): &lt;/p&gt;

&lt;p&gt;✔ Faster &lt;br&gt;
✔ Lighter &lt;br&gt;
✔ More scalable &lt;br&gt;
✔ No frontend changes &lt;br&gt;
✔ Cleaner architecture&lt;/p&gt;

&lt;p&gt;The only requirement? &lt;/p&gt;

&lt;p&gt;Be disciplined with publish dependencies. &lt;/p&gt;

&lt;p&gt;For most Sitecore AI headless projects, this is a clear upgrade and a rare “win-win” architectural improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ready to make the switch? Check out the official guides here: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/enable-edge-runtime-publishing.html" rel="noopener noreferrer"&gt;Sitecore: Enable Edge Runtime Publishing&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.sitecore.com/learn/accelerate/xm-cloud/pre-development/information-architecture/publishing-to-edge" rel="noopener noreferrer"&gt;Understanding Publishing Architecture&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Closing Thought&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Sitecore AI is evolving toward true cloud-native architecture and Publishing V2 is a major step forward. &lt;/p&gt;

&lt;p&gt;If you are still on Snapshot Publishing, this is the time to switch. &lt;/p&gt;

&lt;p&gt;Happy Publishing. &lt;/p&gt;

</description>
      <category>sitecoreai</category>
      <category>webdev</category>
      <category>ai</category>
      <category>developers</category>
    </item>
  </channel>
</rss>
