Posts

Showing posts from December, 2021

Salesforce Asynchronous Apex: How to work with Batch Apex Class

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Batch Apex is a type of Apex code that is used to process large batches of data asynchronously. This means that the code is executed in the background, so it does not block the user interface or other concurrent requests.  Batch Apex is a powerful tool that can be used for a variety of tasks, such as: Data migration Data cleansing Bulk updates Archiving Scheduled jobs To use Batch Apex, you must implement the Database.Batchable interface . This interface defines three methods: start(): This method is called once, at the beginning of the batch job. It is used to initialize the batch job and retrieve the data that will be processed. execute(): This method is called for each batch of data. It is where the actual processing of the data is done. finish(): This method is c...

Salesforce SOAP API: How to Call Utility Functions using SOAP API

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Running bulk insert or update jobs to add or update Salesforce Records is common practice and it is also not uncommon to see Data Synchronization Processes getting confused if the available solution is failed to update the exact time of Salesforce Record getting added or updated. To solve this common challenge Salesforce offers a function getServerTimeStamp() . This function always returns the system current date time stamp in coordination with the UTC time zone, which implies that the local system would display the result according to the local time zone settings. In this article, we see how we can query system current date-time using a SOAP API call. Prepare Request Object In this section, we will see how we can prepare the request envelope to pass it as an object to SOAP A...