How can I get a last record of a record type in an interface that is a portal, I am implementing this to view the information after doing an IDP process?
Discussion posts and replies are publicly visible
The "last" item only works when there is only a single user performing exactly one action at a given time.
A typical approach would be to create an identifier and pass it along. Then you can later query that related new item.