Regarding your question I believe there’s a way to access the attributes of an entity through the Deeplink or MxReflection module, they use some sort of logic similiar to what you’re asking!
Hey. There is an old topic about this and it may seem you can only do it with a java action: