Hello
You changed the internal structure of how parent-connections are connected with there subconnection.
The field "$parent.SubConnections" is just empty, because new all subconnection just have a field named "ParentID".
So to access all subconnections in PS you have to use:
$subcons = Get-RDMSession | Where-Object { $_.ParentID -eq $parent.ID}
Is this right? And if yes can you please update your git-repo:
https://github.com/Devolutions/RDMSamples-ps/blob/main/module/entries/MassEdits/ChangesTo-Subconnections-Sample.ps1
Best regards
Rolf
Hi,
Yes, you are correct, the 2022.3 release changed to way we save and access sub connections.
They are no longer embedded in their parent's data but rather linked by their parent ID.
Thank you for pointing out the out of date documentation, I'll open a ticket bring it up to date.
Regards
Jonathan Lafontaine
Hello Rolf,
We have update the script for subconnections to mention that it's supported up to RDM version 2022.2.x.
https://github.com/Devolutions/RDMSamples-ps/blob/main/module/entries/MassEdits/ChangesTo-Subconnections-Sample.ps1
We have also added the following sample to manage sub entries starting with RDM 2022.3.x.
https://github.com/Devolutions/RDMSamples-ps/blob/main/module/entries/MassEdits/ManageSubEntries.ps1
Let us know if you have further questions about this.
Best regards,
Érica Poirier