
Announcements
Hi,
I have this formula in a button:
UpdateContext({LastUserID:Last(Filter(tbd_RelatedRequests, Origin="TKO")).UserRequestID });
The value of the variable LastUserID give me the result of: 1000018
But in the dataverse table, the latest column value of UserRequestID is 1000019
It seems like the Last function does not make the search always, like it save the value in a cache or something.
What I am doing wrong?
Thanks in advance!
SOLVED with this:
UpdateContext({LastUserID: First(Sort(Filter(tbd_RelatedRequests, Origin="TKO"), 'Created On' , SortOrder.Descending)).UserRequestID });