Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.

In this org, there is a quick action on a list view called 'Execute Order Importer for Selected'. When clicked, the selected order requests are converted and during this process an email is automatically sent to the indivisual who created that order. The quest is to identify that process where an email is sent to reuse for another process.

I ran a debug log and have honed in on an EMAIL_QUEUE line which I believe is involved in the email automation using a template. I've also identified in the log the email that the message was sent to.

Question: How can I use this to identify the automation that occurs so that I may replicate it elsewhere? 

2 answers
  1. Mar 31, 2021, 4:51 AM
    I recommend turning the log levels to the highest (it will be either fine, info or finest) to get more details 

    If it is a workflow, you will see something similar to the following

     

    09:00:24.085 (85955000)|EXECUTION_STARTED

    09:00:24.085 (85993000)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Account

    09:00:24.113 (113658000)|WF_RULE_EVAL_BEGIN|Workflow

    09:00:24.113 (113706000)|WF_CRITERIA_BEGIN|[Account: Test Account 001b000000Rt26i]|Test Workflow|01Qb0000000Tl1k|ON_CREATE_OR_TRIGGERING_UPDATE

    09:00:24.113 (113816000)|WF_FORMULA|Formula:true|Values:

    09:00:24.113 (113831000)|WF_CRITERIA_END|true

    09:00:24.155 (155161000)|WF_SPOOL_ACTION_BEGIN|Workflow

    09:00:24.179 (179282000)|WF_FIELD_UPDATE|[Account: Test Account 001b000000Rt26i]|Field:Account: Active|Value:Yes|Id=04Yb0000000TeFO|CurrentRule:Test Workflow (Id=01Qb0000000Tl1k)

    09:00:24.179 (179319000)|WF_ACTION| Field Update: 1;

    09:00:24.179 (179326000)|WF_RULE_EVAL_END

    09:00:24.202 (202563000)|WF_ACTIONS_END| Field Update: 1;

    09:00:24.202 (202577000)|CODE_UNIT_FINISHED|Workflow:Account

    09:00:24.202 (202584000)|EXECUTION_FINISHED

    If it is an action, you will see WF_ACTION log lines

    I recommend reviewing the following links to learn more

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_system_log_console.htm

    https://help.salesforce.com/articleView?id=000337022&type=1&mode=1

    Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you
  2. Mar 31, 2021, 2:59 PM

    Anudeep, thank you for pointing me to these links.

    Follow-up question, how do I identify the Apex class that an EMAIL_QUEUE event name is referencing to go to that line of code?

0/9000