jan-h
1/6/2016 - 4:56 PM

Get all DXA application data.

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
}