I have a page which has IList<Fruit> property in CMS. My fruit class has Benefit property. User can add Benefits from the same page in different tabs and those saved benefits are displayed in dropdown of the page. So, I used ISelectionFactory with SelectMany and tried to retrieve the saved benefits to dropdown. But metadata.FindOwnerContent() is giving null in GetSelections method of ISelectionFactory. This does not happen when I use Benefit property directly on the page. I need to identify page, to retrieve the saved benefits so that I can assign one of them to fruit.
In short,
Page has Ilist<fruit> and blocks of benefits.
Fruit class has Benefit property.
I want to map fruits with benefits and benefits itself is created in this page as block type. I could not find page reference or content link id to retrieve benefits in this case.