Posts

Showing posts from May, 2020

Salesforce Trigger with Http Callout

Image
Salesforce Trigger with Http Callout This blog will provide the information to implementation HTTP Callout from Trigger. Salesforce has two ways to execute a callout from a trigger is to run it asynchronously. There are following : From @future method : Use when only single callout in Trigger From Queueable Interface Class : Use when need multiple callout in Trigger Let’s do implement and enjoy this magic!! From @future method Future methods execute asynchronously.Future Apex is used to run processes in a separate thread, at a later time when system resources become available. Some important point for future method Method should be return void type. Method should be static. Method support only primitive data types. Method support callout with allow callout.(Default is callout = false). trigger AccountTrigger on Account (after insert,after update) { if(Trigger.isAfter){ for(Account acc: Trigger.New){ if(!System.isFuture() && !

Salesforce Integration With Google

Image
Salesforce Integration With Google This blog will provide the information to integrate Google drive with the simplest way without any complex apex code We have used Auth. Provider and Named credentials to handle authentication for Google Account. That's store the ‘Google Secret ID’ and ‘Google Client ID’ and Named Credential utilizes the Auth. Provider while making callout in custom Apex code. Advantage using Auth. Provider and Named Credential is that we do not need to handle authentication each and every time we make callout. Authentication will be done once we create the Named Credential associated with the Auth. Provider. Let’s do implement and enjoy this magic!! Step to Implements for whole Process Creating a Google Project for App Config Login into the google account for integrate with salesforce Navigate to https://console.developers.google.com/projectselector/apis/library?supportedpurview=project From the project drop-down create a Create a new project.

Salesforce for Custom Notification

Image
I have created one website for tracking COVID-19 infection so you see latest update by country. Click on below link. Live Tracking for Corona Virus Salesforce for Custom Notification In salesforce these is many way for custom notification. Below two ways I have describe in today's blog. Notification Type with Process Builder Change Data Capture with Lightning Component Notification Type with Process Builder This functionality is available to both on Salesforce Mobile Application and Desktop Lightning Experience. Push Notifications are a great way to notify Sales and Service Representative about the cases that need immediate attention or if an opportunity needs to follow up, maybe Opportunity has been closed-won or any other condition. Step 1. Create the Notification Type. Go to Setup → Notification Builder → Custom Notifications → New Step 2. Create the Process Builder Go to Setup → Process Builder → Create new Select your object, and if this should fire