Searching Salesforce Records in Visualforce

This example gets an input from the user on the visualforce page. When you click search it passes the query into the function in the controller which uses Database.query().   Visualforce:

Apex:

 

Sending Email Notifications to Assigned User on Task Creation

If you would like to send an email notification to the owner of a task when its created. Using a trigger on the task object before insert you can invoke Messaging.SingleEmailMessage. Below is a code example. Trigger:

 

How to pass values from visualforce to Apex

Welcome to WordPress. This is your first post. Edit or delete it, then start writing! Controller Class:

Controller class:

AWS Lambda Functions and Salesforce

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam molestie molestie nisl, eu scelerisque turpis tempus at. Nam luctus ultrices imperdiet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse velit orci, pretium ut feugiat nec, lobortis et est. Nullam… Read More

How to use the PageReference Class in Apex

Using the PageReference class can be extremely useful when needing to call apex methods on a visualforce page. It’s important to know that you can do a variety of things like updating,inserting,deleting records but lets cover the basics here. This is how you would do… Read More

Managing values at runtime in Apex

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam molestie molestie nisl, eu scelerisque turpis tempus at. Nam luctus ultrices imperdiet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse velit orci, pretium ut feugiat nec, lobortis et est. Nullam… Read More