Revit Legend for Linked Model Keynotes

Hi all!
Anyone know how to get Dynamo to read Keynotes from a Linked Model and add them to a keynote legend?

Context: my firm is working on a building that is going in several locations. We have one main model with the building information and it is linked into several models with the respective site info and titleblocks. Ideally, I want to annotate the drawings one time in the main model. The only issue is that Revit doesn’t let you include linked keynotes in your keynote legend.

I’m pretty new to Dynamo but any level of help is greatly appreciated!

I tried setting this up on my own and I think I’m getting there. I’m gathering the data from the Linked Model and putting it into a Key Schedule. The script is creating the correct columns and correct number of rows in the Key Schedule but its not filling in any data. Any ideas?

Another update: I changed the String to a Code Block and added a Boolean to the case input.
The problem now is that I can’t filter by sheet…