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.








Comments

Post a Comment

Popular posts from this blog

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #947 | Resolving dashboard logged-in user limit error

Salesforce Fact #989 | New delete files permission