I am trying to import data into sessions. In power I need a way to pull the data from the MetaInformation Fields like SiteLinkID and TeamLinkID. I found the the ID that are on a session but I need the entire list of them to do case statments for populated the data.
Hello Bryan,
To obtain a list of the desired properties, you will have to iterate through all entries. Assuming you are in the correct data source and vault, here are two examples:
# Values set in metainformation
$props = Get-RDMEntry | Select -ExpandProperty MetaInformation | Select -Property SiteLinkID, TeamLinkID, VendorLinkID
$siteLinkIds = $props | Select -ExpandProperty SiteLinkID -Unique | Where { $_ -ne $null -and $_ -ne '' }
$teamLinkIds = $props | Select -ExpandProperty TeamLinkID -Unique | Where { $_ -ne $null -and $_ -ne '' }
$vendorLinkIds = $props | Select -ExpandProperty VendorLinkID -Unique | Where { $_ -ne $null -and $_ -ne '' }# All contact entries
$contactIds = Get-RDMEntry -Type Contact | Select -ExpandProperty ID
# All contact site entries
$contactIds = Get-RDMEntry -Type Contact | Where { $_.MetaInformation.ContactType -eq 'Site' } | Select -ExpandProperty ID
Please feel free to let us know if this helps or if you need further assistance.
Best regards,
Maxime
This is not pulling information from the SystemVault.
Hello,
To retrieve entries from the system vault, add -VaultMode Global to the Get-RDMEntry command.
Best regards,
Maxime