function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tom InwoodTom Inwood 

Why do I get "Field $user.id does not exist" error?

I have been trying to reference the $user.id variable in a row level formula to filter records to match the current user (as mentioned in a few other answers).

However, when I validate my formula, I receive the following error:
Error when encoding row-level formula: Field $user.id does not exist. Check spelling.

Does anyone know why this variable is not accessible?

Thanks! :)

Tom

ShirishaShirisha (Salesforce Developers) 
Hi Tom,

Greetings!

Can you please try with the UserId instead of using User.Id in the formula field.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
James Thomas 26James Thomas 26
Online daily news updates (https://www.alldailynewsonline.com)
 News hunt daily (https://www.thedailynewshunt.com)
Casino news updates (https://www.nodepositcasinonews.com)
Tips for casino slots (https://www.casinoslotstips.com)