exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 235 discussion

Actual exam question from Salesforce's CRT-450
Question #: 235
Topic #: 1
[All CRT-450 Questions]

What are three considerations when using the @InvocableMethod annotation in Apex? (Choose three.)

  • A. A method using the @InvocableMethod annotation must be declared as static.
  • B. A method using the @InvocableMethod annotation can be declared as Public or Global.
  • C. A method using the @InvocableMethod annotation can have multiple input parameters.
  • D. A method using the @InvocableMethod annotation must define a return value.
  • E. Only one method using the @InvocableMethod annotation can be defined per Apex class.
Show Suggested Answer Hide Answer
Suggested Answer: ABE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
noox
Highly Voted 1 year ago
Selected Answer: ABE
https://developer.salesforce.com/docs/atlas.en-us.234.0.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm A : "The invocable method MUST be static and public or global, and its class must be an outer class." B : "The invocable method must be static and public OR global, and its class must be an outer class." E : "Only one method in a class can have the InvocableMethod annotation."
upvoted 8 times
...
DonAldos
Most Recent 1 year, 2 months ago
Correct: https://developer.salesforce.com/docs/atlas.en-us.234.0.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm
upvoted 3 times
DonAldos
1 year, 2 months ago
Sry, I think its A,D & E because the invocable method MUST be static and public or global, and its class must be an outer class. (see source) therefore B is false
upvoted 1 times
noox
1 year ago
I don't know what you're talking about. ABE is correct and you've had figured out ^^
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...