Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • are you OK with using VF email? Commented Apr 7, 2022 at 0:25
  • @cropredy This is in a scheduled batch job so emails are sent once in a month Commented Apr 7, 2022 at 1:37
  • Yes but can the email be a VF email template rather than hard-coded html? Commented Apr 7, 2022 at 1:40
  • We need the values dynamically based on the query in the batch job. My issue is not with the email template , its with creating a list of "To address" based on tasks owned by each ownerId. @cropredy Commented Apr 7, 2022 at 2:08
  • ignore my VF email comment - I forgot that there is no related list between User and Task - my answer tho addresses this Commented Apr 7, 2022 at 2:52