Skip to main content
added 1 character in body
Source Link
Cristi Vulturar
  • 2.3k
  • 2
  • 7
  • 28

I am looking to serialize itemitems in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have gotthe following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "DescendantsOnly",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

I am looking to serialize item in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have got following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "DescendantsOnly",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

I am looking to serialize items in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have the following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "DescendantsOnly",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

edited title
Source Link
Arun Kumar
  • 613
  • 6
  • 24

Sitecore serialization Configuration issueContent Serialization to include parent item as create only

I am looking to serialize item in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have got following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "ItemAndDescendants""DescendantsOnly",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

Sitecore serialization Configuration issue

I am looking to serialize item in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have got following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "ItemAndDescendants",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

Sitecore Content Serialization to include parent item as create only

I am looking to serialize item in a way that configuration should CreateOnly for root item and than all the descendants should be deleted/updated & created as per normal. So far I have got following Json but it seems to be deleted all the items under settings

{
"name": "SiteContent",
"path": "/sitecore/content/ABCGroup/ABC",
"rules": [{
   "path": "/Settings",
   "scope": "SingleItem",
   "allowedPushOperations": "CreateOnly"
   },
],
{
   "name": "SiteSettings",
   "path": "/sitecore/content/ABCGroup/ABC/Settings",
   "scope": "DescendantsOnly",
   "rules": [
      {
        "path": "/Item Queries/*",
        "scope": "ignored"
      },
      {
      "path": "/Redirects/*",
      "scope": "ignored"
      },
      {
        "path": "/Scopes/*",
        "scope": "ignored"
      }
     ]
    
    }

I am trying to have /Settings Create only and the descendants should be create/update/delete.

Source Link
Arun Kumar
  • 613
  • 6
  • 24
Loading