+1 vote
6 views
by (163k points)

Quick Action : SendMail

I want to get predefined values using Apex

enter image description here

QuickAction.QuickActionRequest req = new QuickAction.QuickActionRequest();
  req.quickActionName = Schema.Case.QuickAction.SendEmail; 

How to get value mentioned in ValidatedFromAddress pfv ?

1 Answer

+1 vote
by (163k points)
 
Best answer

You need to use QuickAction.describeQuickActions and then get default values.

List<QuickAction.DescribeQuickActionResult> result =
        QuickAction.DescribeQuickActions(new List<String> {
                'Case.SendEmail'});


System.debug(result[0].getDefaultValues());
Welcome to Memory Exceeded, where you can ask questions and receive answers from other members of the community.
...