This is my Patch statement. Sometimes it runs very fast. Other times, it can hit this statement and take minutes (really up to 5-10) to finish executing. Eventually it does.
How can I rewrite this so this doesn't happen.
FYI: CDMRequests is a VERY small Sharepoint List with about 10 records. "varSelectedRequestID" is a variable that gets set with what is in the gallery and I have validated the value is always there and correct.
Simply put, the system doesn't like this Patch command some of the time and I'm hoping there is some way to rework it so that it works quickly EVERY time.
This is a HUGE problem for me, so ALL help is greatly appreciated!
Patch(
CDMRequests,
LookUp(
CDMRequests,
ID = varSelectedRequestID
),
{Status: EndStatus}
)