Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get all DXA application data.
Import-Module Tridion-CoreService
$core = Get-TridionCoreServiceClient
Write-Host "global app data"
$data = $core.ReadAllApplicationData("")
[System.Text.Encoding]::Unicode.GetString($data.Data)
Write-Host
$itemIds = $core.GetSubjectIdsWithApplicationData("http://www.sdl.com/tridion/SemanticMapping/typeof")
$itemIds = $itemIds + $core.GetSubjectIdsWithApplicationData("http://www.sdl.com/tridion/SemanticMapping/vocabularies")
foreach ($itemId in $itemIds) {
Write-Host "All app data for item $itemId"
$data = $core.ReadAllApplicationData($itemId)
Write-Host "application id " $data.ApplicationId
[System.Text.Encoding]::Unicode.GetString($data.Data)
Write-Host
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment