How to write test class for auraenabled method in salesforce

There’s nothing special about testing methods with @AuraEnabled or any other modifier. Create a “@IsTest” class, then an “@IsTest” method, and call your methods just as you would non-aura code. Your submitObjecttoApex method is a little complex, but still easily testable. Full Answer How to write a test class for @auraenabled method? The same way … Read more

How to write batch class in salesforce

To write a batch APEX class, you should first implement the “Database.Batchable” interface in the Salesforce and including the execution of these three methods. Start Execute Finish Create an apex class that implements Database. Batchable interface and class can be global or public as mentioned below. To write a Batch Apex class, your class must … Read more

How to write a trigger in salesforce

Trigger on Attachment in Salesforce Click on your name at (top left corner) and Select “Developer Console” Go to File -> New -> Apex Trigger. Select name of SObject and enter name of trigger Click on submit button. In this way we can create trigger on attachment. Create an Apex Trigger From Setup, select Customize … Read more

How to win salesforce goodies

Now through November 30, you can earn prizes for you or your team just by earning Salesforce credentials. While supplies last, there are two ways to win: Earn any 2 Accredited Professional Marketing Cloud, Commerce Cloud or Industries credentials and get a FREE Trailhead cert voucher + Salesforce swag for you or a friend Full … Read more

How to whitelist ip on salesforce

To enforce IP whitelisting on Salesforce, you need to do the following: On Salesforce, click on Setup. Type Security Control in the Search box and click on Network Access. Click New to enter a trusted IP Address Range. Insert the IP range and Save. How Do I Whitelist IP Addresses In Salesforce? In Salesforce, go … Read more

How to whitelist all ip address in salesforce

How Do I Whitelist IP Addresses In Salesforce? In Salesforce, go to Setup. Security Controls Network Access. Click New. Enter a valid IP address in the Start IP Address field and a higher IP address, in the End, IP Address field. 0.0.0.0 to 1.255.255.255. 132.0.0.0 to 132.255.255.255. 132.0.0.0 to 133.255.255.255. Simply: 1) Enable this plugin … Read more