Useful tips for everyday
How to embed a Visualforce page in Lightning component? I have tried embedding a visualforce inside a lightning component and also tried sending data from…
How do you access the apex variable in lightning component? In our test component we have a aura:attribute which type is class Type. On the…
How are database triggers used to publish events? One or more database triggers insert events into an EVENTS table, which is polled by a separate…
What can I do instead of iframe? Alternative to iFrames in HTML5 Adjusting Height and Width. Using Embed Without Borders. By default, embed don’t have…
How do I enable lightning dialer in Salesforce? Enable Sales Dialer Turn on Dialer from the Dialer Settings page in Lightning Experience. Add Dialer to…
How to limit and order by in SQL queries? Just add more column names and ordering keywords – i.e. ASC and DESC – separated by…
Is it possible to mock a callout in apex? It’s difficult to test logic around a callout (response parsing in particular). It’s generally a good…
How to run above test classes in Java? To run above test classes, create a XML file – testng.xml (can be any filename) file, and…
Why do I get an error when I insert a duplicate value? This means when it tries insert the values, it tries to create 2…
How do you use custom permission in validation rule? Custom Permissions let you define access checks that can be assigned to users via permission sets…