When the autolaunched flow runs without the "System Context Without Sharing – Access All Data" option, and it attempts to access User records with “Automatically Store All Fields” enabled, the following error may occur:
“No such column 'UserPreferencesUseSalesforceMailerForLexEmail' on entity 'User'. If you are attempting to use a custom field, be sure to append '__c' after the custom field name.”
Note : UserPreferencesUseSalesforceMailerForLexEmail is provided here as an example, and the error may refer to other internal User preference fields depending on your org’s configuration.
This happens because certain UserPreference fields aren’t accessible in a limited-access context, causing the Flow’s automatic field capture to reference fields the running user cannot see.
Workarounds:
- If you'd like to run the flow using "Automatically Store All Fields", please run the flow in "System Context Without Sharing – Access All Data" option.
- Alternatively, you can select "Choose fields and let Salesforce do the rest" instead of using Automatically Store All Fields."
005228834

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.