Posts

Showing posts from February, 2025

Apex DSA - Reverse a Linked List - Salesforce

  Reverse a Linked List Problem Statement: Given a linked list, reverse it and return the new head. Example: plaintext CopyEdit Input:  5 -> 4 -> 3 -> 2 -> 1  Output:   1 -> 2 -> 3 -> 4 -> 5   Solution : // Define ListNode as a top-level class public class ListNode {     public Integer val;     public ListNode next;     public ListNode(Integer val) {         this.val = val;         this.next = null;     } } //Build logic for reverse LinkedList public class ReverseLinkedList {     public ListNode reverseList(ListNode head) {         ListNode prev = null;         ListNode curr = head;         while (curr != null) {             ListNode nextTemp = curr.next;             curr.next = prev;         ...

Field Value Auto populate in salesforce

 Field Value Auto populate in salesforce / auto populate field values in salesfroce on standard "new" action for custom object creation. 1. field default value on field level configuration. 2. Create a custom quick action. 3. overwrite "new" Action with custom lwc,aura,screen flow,vfpage.

How to know Aparticular user have acces on particular record or not - in salesfroce

 SELECT RecordId, MaxAccessLevel, HasAllAccess, HasDeleteAccess, HasEditAccess, HasReadAccess, HasTransferAccess FROM UserRecordAccess WHERE UserId = '005Bm00000EYrt3' AND RecordId = '069OZ00000637zBYAQ'

Agentforce workshop

 https://www.youtube.com/watch?v=52QpSjQVgIg

Log A Call - Salesforce

 https://www.youtube.com/watch?v=LbjzuLOP6uk https://www.youtube.com/watch?v=XlxFJ90iaZM https://www.youtube.com/watch?v=YAsDMoCjkvQ https://www.youtube.com/watch?v=_cRo_RLpHQs https://www.youtube.com/watch?v=xFijJmkyT7M