I have items that have clone notifications.
Now I want to accept the changes using SPE. Can someone teach me how to use Receive-ItemCloneNotification? Can't see any articles that explain it. Thanks!
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityHere are a few examples to get you started.
Example: The following gets the clone and checks for notifications.
$clonedItem = Get-Item -Path "master:" -ID "{9F158637-52C2-4005-8329-21527685CB71}"
Get-ItemCloneNotification -Item $clonedItem
Example: The following Accepts the notification.
$clonedItem = Get-Item -Path "master:" -ID "{9F158637-52C2-4005-8329-21527685CB71}"
$clonedItem | Get-ItemCloneNotification | Receive-ItemCloneNotification -Action Accept