Likely very similar output as @morten.engel's response, but Sitecore Powershell Extensions has a Get-ItemReferrer
command:
$allReferrers = Get-ItemReferrer -ID '{093B75B4-5060-4F3D-AFAB-DCA4999F7E96}'
The above will return all referrers to the item specified by the ID
. If you need to filter the referrers based on additional fields:
$checkedReferrers = Get-ItemReferrer -ID '{093B75B4-5060-4F3D-AFAB-DCA4999F7E96}' | Where-Object {$_.Fields["Show Image"].Value -eq 'checked'}
Also, if you need to know or filter based on the actual field referencing the specific item, Get-ItemReferrer
also has a -ItemLink
switch that will return Links
instead of Items
(almost exact to @morten.engel's answer):
$filteredFieldReferrers = Get-ItemReferrer -ID '{093B75B4-5060-4F3D-AFAB-DCA4999F7E96}' -ItemLink
| Where-Object { $_.SourceFieldId -eq '{04BF00DB-F5FB-41F7-8AB7-22408372A981}' -or $_.SourceFieldId -eq '{F1A1FE9E-A60C-4DDB-A3A0-BB5B29FE732E}' }
| Select-Object -Property SourceItemID -Unique | Get-Item