Usually Annotation means which will specifies the behavior or modifies the way how the particular class or method behaves in salesforce. Based on annotations the functionality or behavior and usage of particular class or method we can simply identify.
List of Available Annotations in Apex
- Each annotation will starts with '@' symbol and followed by name of the annotation
- To declare a method/class with annotations it must be declared immediately before method/class
Method with Annotation Example
public class UserHistoryProcessor { @InvocableMethod public static void updateUserHistory(List<Id> userIds) { //related code here } }
List of Available Annotations in Apex
- @isTest
- @InvocableMethod
- @InvocableVariable
- @future
- @AuraEnabled
- @ReadOnly
- @RemoteAction
- @TestSetup
- @TestVisible
- @Deprecated
Apex REST annotations:
- @RestResource(urlMapping='/yourUrl')
- @HttpDelete
- @HttpGet
- @HttpPatch
- @HttpPost
- @HttpPut
we will discuss about each and every annotations with examples in next post please keep following the blog for latest updates
Thanks for visiting...Enjoy!
5A45339363
ReplyDeleteTakipçi Satın Al
Footer Link Satın Al
Para Kazandıran Oyunlar
Danone Sürpriz Kodları
Titan War Hediye Kodu
ReplyDeleteCustomizing your belongings has never been easier with high-quality options like the uv dtf sticker. These stickers offer durability and vibrant colors, making them perfect for personalizing laptops, water bottles, and more. Whether you're creating unique gifts or enhancing your own items, they provide a professional finish. For more details, visit the website and explore the possibilities.