0% found this document useful (0 votes)
41 views3 pages

Annotations Used in Salesforce

The document describes various annotations used in Salesforce including @AuraEnabled, @InvocableMethod, @Future, @TestVisible, @RemoteAction, @HttpDelete, @HttpPost, @HttpPut, @HttpGet, @IsTest, @ReadOnly, @RestResource, @Deprecated and others.

Uploaded by

shahanwaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Annotations Used in Salesforce

The document describes various annotations used in Salesforce including @AuraEnabled, @InvocableMethod, @Future, @TestVisible, @RemoteAction, @HttpDelete, @HttpPost, @HttpPut, @HttpGet, @IsTest, @ReadOnly, @RestResource, @Deprecated and others.

Uploaded by

shahanwaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Annotations Used In Salesforce

1. @AuraEnabled - Marks a method as accessible in Lightning


components.

2. @InvocableMethod - Marks a method as invocable in a process or


flow.

3. @Future - Marks a method to run asynchronously in the future.

4. @TestVisible - Exposes private variables or methods for testing.

5. @RemoteAction - Marks a method as callable from JavaScript in


Visualforce pages.

6. @HttpDelete - Marks a method to handle HTTP DELETE requests.

7. @HttpPost - Marks a method to handle HTTP POST requests.

8. @HttpPut - Marks a method to handle HTTP PUT requests.

9. @HttpGet - Marks a method to handle HTTP GET requests.

10. @IsTest - Indicates that a method is a test method.

11. @ReadOnly - Marks a method to run in a read-only mode.

12. @RestResource - Marks a class as a RESTful web service.


13. @Deprecated - Marks a method as deprecated.

14. @Future(Callout=true) - Marks a method to run asynchronously with a


callout.

15. @RemoteAction - Marks a static method as callable from JavaScript.

16. @HttpPost - Marks a method as an HTTP POST endpoint.

17. @HttpDelete - Marks a method as an HTTP DELETE endpoint.

18. @HttpPut - Marks a method as an HTTP PUT endpoint.

19. @HttpGet - Marks a method as an HTTP GET endpoint.

20. @AuraEnabled(cacheable=true) - Marks a method as cacheable in


Lightning components.

21. @InvocableVariable - Marks a variable as input or output for


InvocableMethod.

22. @NamespaceAccessible - Marks a class as accessible in a managed


package namespace.

23. @NamespacePrefix - Specifies the managed package namespace prefix.


24. @RestResource(urlMapping='/MyEndPoint/*') - Maps a URL pattern to a
RESTful endpoint.

25. @RemoteAction - Marks a method as callable from JavaScript in


Visualforce pages.

26. @IsTest(SeeAllData=true) - Allows test methods to see all data in the org.

27. @HttpPatch - Marks a method to handle HTTP PATCH requests.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy