0

I have a recordtriggered flow on EmailMessage which fires on incoming emails. Whenever the email message is inserted the recordtriggered flow sends an email alert which is using vf template.

When I see details of case in email I am just seeing case number and id. Other fields like subject, closeddate is not showing any value.

But when I added renderUsingSystemContextWithoutSharing="True" in my vf template rest of the field values is getting displayed in email.

I am not able to understand the concept behind it because the whole process already run as a system user that does not restrict anything as it has access to everything.

Any help would be appreciated.

3
  • Is the running user = Automated Process user? If so, that user and VF email templates don't get along -- see KI and this post
    – cropredy
    Mar 23 at 0:04
  • @cropredy It's running on the behalf of system user because the email message record is created on the behalf of system user and also when I am printing the current user id in template its giving me the system user. Mar 28 at 18:08
  • instead of using System as automated case user (support settings) , can you change it to be a different user
    – cropredy
    Mar 28 at 19:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.