OriginalPostID-103743
Discussion posts and replies are publicly visible
Try using index function i.e. index(ri!anyTypeVariable,"ID",{})