Skip to main content

Posts

Restrict Users to Use Salesforce Classic

Did you know you can restrict users to use Salesforce Classic, How? Below are the steps: 1) Select the Profile of the User. In my case I m using System Admin Profile. 2) Go to Setup --> In the Quick find box --> Search Profiles 3) Select the System Admin Profile. 4) Search for "Hide Option to Switch to Salesforce Classic" . Refer the Below Screeshot. After Enabling the "Hide Option to Switch to Salesforce Classic" for a particular profile, User cannot see the "Switch to Salesforce Classic" option in user profile.                                                                            Thank you !!!  

Login Salesforce Without Credentials(Without UserName and Password)

  Want to login into Salesforce without credentials. Please follow the below STEPS: STEPS:-  1)  Goto to setup  --> Open Developer Console. 2) Goto debug --> Open Execute Anonymous Window --> It will open the pop. 3) Please write the below code in Anonymous window.       String sessionId = UserInfo.getOrganizationId() + '' + UserInfo.getSessionId().SubString(15);      System.debug('$$$$ Session Id ' + sessionId); 4) Click on Execute and filter the debug. You can see one session Id with Organization Id. Now, we have to copy the debug session Id and create one login URL. Steps to create Login URL: 1) Copy the Salesforce URL. Please refer the screenshot shown below. 2) Now concatenate the session Id with the salesforce URL and your Session Id Will look like below. https://d5g000004zfq2eai-dev-ed.lightning.force.com/secur/frontdoor.jsp?sid=00D5g000004zfQ2EAI!AQgAQKzTcnQTifXpRnQ7DgECtk_rv.w9BT5FoPEAmoy_UrgG4HJ6B9YFpQ2LVlmnJhBrYPSf8cI...

Top 5 trigger scenarios in salesforce

  1)  Write a trigger on the Account when the Account is updated check all opportunities related to the account. Update all Opportunities Stage to close lost if an opportunity created date is greater than 30 days from today and stage not equal to close won. trigger UpdateOpportunitiesOnAccountUpdate on Account (after update) {          // Get the IDs of all the updated Accounts     Set<Id> accountIds = new Set<Id>();     for (Account acc : Trigger.new) {         accountIds.add(acc.Id);     }          // Query for all Opportunities related to the updated Accounts     List<Opportunity> opportunitiesToUpdate = [         SELECT Id, StageName, CreatedDate         FROM Opportunity         WHERE AccountId IN :accountIds     ];          // Update Opportunities that ...

View Debug Information for Wired Properties in Browser Console

  To simplify the process of debugging data received with a wired property in Lightning Web Components, Chrome DevTools now provides custom formatters that allow you to access debug information directly from the console. Before this feature, you had to use a wired function to return your data and then inspect the deconstructed data and error properties to debug wired properties and methods. With custom formatters, you can simply log your wired property or method to the console, and the debug information will automatically be formatted and displayed for you. This saves you the trouble of manually inspecting the deconstructed data and error properties. Here is a step-by-step guide for viewing debug information for wired properties in the Browser Console, starting with enabling debug mode for a selected user. Enable Debug Mode for a Particular User in OrgEnable Debug Mode for a Particular User in Org Enter “Debug” in the Quick Find Box . Click on Debug Mode under Lightning Components...

Create a WhatsApp Channel in Service Cloud(Salesforce)

Create a Messaging channel to let your support team help customers over WhatsApp. Customers message your company from the WhatsApp mobile or desktop app, and agents reply from the Service Console. SetUp Enhance WhatsApp Channel: To set up an enhanced WhatsApp channel, go to the Messaging Settings in Setup and select Messaging. Click on New Channel and choose WhatsApp, then Enhanced. Follow the instructions to create or select a Meta Business Account, a WhatsApp Business Account, and a WhatsApp Business Profile. Verify your WhatsApp Business phone number and click OK when notified that you’re ready to chat. Choose how to route incoming messages to agents, and customize the user experience for agents and customers. To create a standard WhatsApp channel, go to Facebook Business Manager and find your Business Manager ID. Send an email to whatsappenablement@salesforce.com with your Salesforce org ID, Facebook Business Manager ID, phone number, and other information. After a few days of pro...

How to create ICS/Calendar File | Helps you to download the calendar invites

  Want to know how to create ICS(Internet Calendar Scheduling) file for Business purpose....👀    ICS (Internet Calendar Scheduling) file is a calendar file saved in a universal calendar format used by several email and calendar programs, including Microsoft Outlook, Google Calendar, Notes and Apple Calendar. It enables users to publish and share calendar information on the web and over email. Lets see the code. The code is written in lwc(Lightning web component). HTML:   <template> <div class="login-container"> <h1 style="size: 14px;"><b>Create ICS File</b></h1> <div class="form-group"> <lightning-input type="datetime" name="input1" value={EventEndValue} onchange={startDate} label="Enter Start date/time value" ></lightning-input> </div> <div class="form-group"> <lightning-input type="...

Barcode Scanner API In LWC

  In this blog, you will learn how you can use the newly launched Barcode Scanner API for lightning web component in salesforce. Salesforce released a new Barcode Scanner API which now supports Scanning barcodes from a Lightning web component for mobile devices. salesforceScanner.html :- <!-- barcodeScannerExample.html --> <template>     <div class = "slds-text-align_center" >         <span class = "slds-text-heading_large" > <lightning-icon icon-name = "utility:scan" alternative-text = "XML file" title = "XML" > </lightning-icon> Salesforce Wallah </span>     </div>     <template if:true = {scannedBarcode} >         <div class = "slds-var-m-vertical_large slds-var-p-vertical_medium              slds-text-align_center slds-border_top slds-border_bottom" >             Scanned bar...