SFDC Surf
258 FOLLOWERS
I am Priyanka Dadhe, a certified Salesforce Developer. I have been working as a Salesforce Developer since 2017. I like to spend my time on Trailblazer Community Portal. Whenever I get time, I try to help trailblazers by answering their queries.
SFDC Surf
3y ago
Hello Trailblazers !
Those who are familiar with Apex Trigger, must have written Before Update Trigger. Before-save updates in flows accomplish that same goal, but much more quickly because each record doesn’t get saved to the database again. Avoiding that extra save procedure means skipping another round of assignment rules, auto-response rules, workflow rules, and other customizations that take time to execute.
A flow that makes before-save updates is similar to a before trigger. In a save procedure, before-save updates in flows are executed immediately prior to Apex before triggers ..read more
URL Hack in Lightning Experience - Create Record with Record Type Selection using Button or Link URL
SFDC Surf
3y ago
Hello Trailblazers !
In this article, we are going to learn about simple salesforce url hack to create record with record type selection from related or unrelated object record page which will save our lots of time & without creating lightning component we can achieve this.
1. Let's create custom button from 'New Button & Link'
/lightning/o/your_object_api/new?useRecordTypeCheck=1
2. Add Button to page layout
3. Click on button
4. Select record type from popup and click next to create new record.
References
1. Navigate to a Record’s Create Page with De ..read more
SFDC Surf
4y ago
Hello Trailblazers !
In this blog post, we will see what is FOR UPDATE clause in SOQL, when to use it and how to use it. FOR UPDATE clause in SOQL is basically used to lock sObject records while they are being updated in order to prevent race conditions and other thread safety problem.
When sObject record is locked, no other client or user is allowed to make updates either through code or salesforce user interface.
Syntax
List<Account> accList = [SELECT Id, Name FROM Account LIMIT 10 FOR UPDATE];
When you run above query, Account records will be locked for this tran ..read more
SFDC Surf
4y ago
Hello Trailblazers !
In this blog post, we are going to see how to create lightning component for custom modal popup which we can use in Lightning Action Button to override the standard modal popup.
Standard action button component provides header name as the action button name and cancel button in footer by default. But, there may be a requirement that you want to show different heading in modal header and all the buttons like previous, next or save in footer. So for this, I have created lightning component.
You can install unmanaged package that I have created for you. Below is ..read more
SFDC Surf
5y ago
Hello Trailblazers !
In this blog post, we are going to see how to print Lightning Component and how we can hide some elements while printing using standard slds class.
.slds-no-print selector is used to hide a component when printing a page.
Example:
<div >hide this div when printing</div>
//AccountController.apxcpublic class AccountController { @AuraEnabled public static String getAccountName(String accId){ String accName; if(accId != null){ accName = [SELECT id, Name FROM Account WHERE id= :accId].Name; System.debug('accName'+accName); return accName; }else{ return ..read more
SFDC Surf
5y ago
Hello Trailblazers !
In this blog post, we are going to see how to print Lightning Component and how we can hide some elements while printing using standard slds class.
.slds-no-print selector is used to hide a component when printing a page.
Example:
<div >hide this div when printing</div>
Step 1 : Create Lightning Component that you want to print
<!-- DocTypeComponent.cmp--><aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQu ..read more
SFDC Surf
5y ago
Critical UpdatesSalesforce periodically releases updates that improve the performance, logic, and usability of Salesforce. When these updates become available, Salesforce lists them in Setup at Critical Updates and displays a message when administrators go to Setup.
Note:
Salesforce recommends testing each update by activating it in either your Developer Sandbox or your production environment during off-peak hours.
Steps
Go to Setup -> Type Critical Updates in Quick Find Box
Click on Critical Updates
From this page, you can view the summary, status, and auto-activation date for ..read more
SFDC Surf
5y ago
What happens when a process or flow interview fails?When a process or flow interview fails, Salesforce sends an email with details about everything that was executed and what failed. The details include the data that's involved in the process or flow, including user-entered data.
When a user does something that triggers a process, such as create a record, and the process fails, the user gets an error message. The error message includes the process name, error ID, and sometimes technical information that the user can give to you, the Salesforce admin. You can use the error ID to locate the de ..read more
SFDC Surf
5y ago
Hello Trailblazers ! In this blog post, we are going to see how to display text message on record page when record is submitted for approval automatically using Lightning Component Visibility Feature. Requirement
1. Create Approval Process 2. Create Process Builder to call approval process 3. Create Lightning Component to display text message 4. Add component on record page by setting component visibility with filter criteria
Let's see it in action
1. Create Approval Process
Step 1 : Create Approval Process on Opportunity Object with Entry Criteria Opportunity Stage equals to Qualific ..read more
SFDC Surf
5y ago
Hello Techies ! Those who have read about Bitcoin transactions, have heard and read the word blockchain many times. Blockchain eliminates the need for third parties such as banks to mediate transactions. In this blog post, we will see how blockchain helps to secure our transactions.
How Bitcoin and Blockchain Differ
Blockchain and bitcoin are completely separate things. Blockchain is a sea in which Bitcoin is like a small fish. This sea is slowly expanding in the coming years to store technology around the world. Simply put, blockchain is a virtual ledger, in which all your transa ..read more