Get views where Revit elements are shown

Hello everyone,


I am trying to get all the views where certain elements are shown, based on the elements GUID, so i can then identify the sheets where they appear.

I was trying to use the following flow, but the problem is that i have to get the index of the sublists where i find the elements, and i only can get the index of the sublist. Any ideas?

Kind regards

We had a go at this a while back, see if there’s anything you can use here: