How To Send Emails in Salesforce (Screen Flow & Email Alerts)

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 7

  • @ShubhamPatel-m3p
    @ShubhamPatel-m3p 9 місяців тому

    Hi Chris, I have a scenario where I have to iterate over thousands of records. Will this flow work for that condition too or is there any chance for Salesforce governor limit to get hit?

    • @ChrisMarquez
      @ChrisMarquez  9 місяців тому

      I found documentation that says the limit on retrieved records is 50,000 but it's possible it could still fail even if you're under that limit due to CPU time limits (depends on how much processing you're doing on the records) or even Email Send limits. You might be better off using a different method such as Apex schedulable/batch.
      help.salesforce.com/s/articleView?id=sf.flow_considerations_limit_transaction.htm&type=5

  • @patrickj.trevenen1633
    @patrickj.trevenen1633 8 місяців тому

    Hello, I am trying to do a screen flow that allows a user to pick from several email templates and then send out the email. Can you do this idea? I can't find a video like that.

    • @ChrisMarquez
      @ChrisMarquez  7 місяців тому

      Here you go: ua-cam.com/video/LmsAHnwnycI/v-deo.html

  • @pradhumnsharma
    @pradhumnsharma Рік тому

    Hey I have a requirement like I have a picklist in screen flow having all the email templates and I want to send the particular email template at a time how can I achieve this

    • @ChrisMarquez
      @ChrisMarquez  Рік тому +1

      I'll make a video for this in a few days after thinking about it but here are some thoughts:
      If you need to strictly stick with your requirements: You could create a apex class that schedules the email send and have the screen flow invoke that, Your Screen flow would ask the user for the time and pass that into the apex class. You'd probably have to implement the Schedulable Interface. I'm not a fan of this solution because you're relying on the user to provide input.
      Possible simpler, easier solution: You could instead create a scheduled-trigger flow with the exact time you need to send out these email alerts.

    • @joeyeisenzimmer2571
      @joeyeisenzimmer2571 Рік тому

      @@ChrisMarquez Great videos! Any idea how to setup a Scheduled Flow to send a reminder to all Account owners every 60-90 days to go in an update their owned account records? Maybe the 1st of every quarter would work also. Even with a "get records" element, I still can't seem to have all account record owners be sent an email while testing.