Salesforce Fact #188 | Be careful with current user Id in flow
We need to be careful while dealing with current user Id from the $User global variable in flow. It returns the case sensitive Id of 15 character length. So during the Id comparison we may experience discrepancy, as the standard userId storing fields in object stores the Id in 18 character case insensitive format.
Therefore, in the flow we can use a formula field and store the current user Id after applying the CASESAFEID function to get the equivalent 18 character version.
Attached are the screenshots.
Great to know these things !!!
ReplyDelete