nerdexam
Salesforce

CRT-450 · Question #165

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers

The correct answer is C. A method using the @InvocableMethod annotation must be declared as static D. A method using the @InvocableMethod annotation can be declared as Public or Global. E. Only one method using the @InvocableMethod annotqation can be defined per Apex class. See the full explanation below for the reasoning.

Question

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers

Options

  • AA method using the @InvocableMethod annotation must define a return value.
  • BA method using the @InvocableMethod annotation can have multiple input parameters.
  • CA method using the @InvocableMethod annotation must be declared as static
  • DA method using the @InvocableMethod annotation can be declared as Public or Global.
  • EOnly one method using the @InvocableMethod annotqation can be defined per Apex class.

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    16% (7)
  • C
    77% (34)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice