OriginalPostID-176968
Discussion posts and replies are publicly visible
You can use this code in grid field value ,
value: wherecontains ( fv!identifier , tointeger ( fv!currentPage.identifiers ) ) + fv!currentPage.startIndex - 1,