Name
|
Data Type
|
---|---|
recordId
|
string
|
from
|
string
|
to
|
string array
|
cc
|
string array
|
bcc
|
string array
|
attachmentId
|
string array
|
templatedId
|
string
|
recipientId
|
string
|
status
|
boolean
|
message
|
string
|
Attributes
|
Description
|
---|---|
recordId
|
Email id to which the email needs to be sent.
|
from
|
Email id from which the email needs to be sent.
|
to
|
Email id to which the email needs to be sent.
|
cc
|
Email id to which the email needs to be Cc’d
|
bcc
|
Email id to which the email needs to be Bcc'd.
|
attachmentId
|
A list containing the file names of the binary and text files to be attached to the email.
|
templatedId
|
Template Id of the selected email Id.
|
recipientId*
|
Contact Reference Id which needs to be passed for the email to be sent.
|
Attributes
|
Description
|
---|---|
success
|
If the custom function sent the email successfully, then set it to true, else false.
|
message
|
If the success attribute in the response is false, then this message is sent to the user.
|
|
The Class Name and Method Name must be set to the exact name defined in the custom Apex class and method when configuring the Custom Action of type Email. For example, "Classname" and "sendCustomEmail".
|