Monthly Archives: November, 2020

Adding/Assigning the list of Permission Sets to a User via APEX

User userRecord = [ SELECT Id,Name FROM User...

How to Find Salesforce Object ID prefixes (custom or standard)

How to Find Salesforce Object ID prefixes (custom or...

Customized Kanban View using lightning Components | SalesforceCody

Hello SalesforceCody's, we are here with New post, Yes "Customized...

Top 100 Salesforce Developer Blogs & Websites To Follow in 2020 | SalesforceCody

Yes, you heard it correctly, SalesforceCody Blog has been...

Salesforce Integration With Bitly

public class Salesforce_Bitly_Intigration { public Salesforce_Bitly_Intigration(){ ...

Create a Trigger on Account which will set the ownership as “public”.

trigger AccountrTrigger on Account (before insert) { ...

Create a Trigger on Opportunity which will set the Opportunity type as “new customer”.

trigger Opportunitytrigger on Opportunity (before insert) {     if(Trigger.isBefore && Trigger.isInsert){         for(Opportunity...

Salesforce Interview Question Answers | Part 4

Question 1. When Do You Use A Before Vs....

ADVERTISMENT

Adding/Assigning the list of Permission Sets to a User via APEX

User userRecord = [ SELECT Id,Name FROM User limit 1]; List<String> permissionSetNames =new permissionSetNames(); permissionSetNames.add('PermissionSet1');//replace with your'e permission set name permissionSetNames.add('PermissionSet2');//same here List<PermissionSetAssignment> permissionSetAssignments = new List<PermissionSetAssignment>(); List<PermissionSet>...

How to Find Salesforce Object ID prefixes (custom or standard)

How to Find Salesforce Object ID prefixes (custom or standard) In salesforce every custom and stranded object has specific id. first 3 digits of an...

Customized Kanban View using lightning Components | SalesforceCody

Hello SalesforceCody's, we are here with New post, Yes "Customized Kanban" using Lightning Components. this is how it's looks Get it for you self just by installing...

Top 100 Salesforce Developer Blogs & Websites To Follow in 2020 | SalesforceCody

Yes, you heard it correctly, SalesforceCody Blog has been selected among top 30 Salesforce Developer Blogs Thanks to Everyone who made this possible! thanks to...

Salesforce Integration With Bitly

public class Salesforce_Bitly_Intigration { public Salesforce_Bitly_Intigration(){ HttpRequest req = new HttpRequest(); ...

Create a Trigger on Account which will set the ownership as “public”.

trigger AccountrTrigger on Account (before insert) { if(Trigger.isBefore && Trigger.isInsert){ for(Account act : ...

Create a Trigger on Opportunity which will set the Opportunity type as “new customer”.

trigger Opportunitytrigger on Opportunity (before insert) {     if(Trigger.isBefore && Trigger.isInsert){         for(Opportunity oppRecord: Trigger.New){            oppRecord.Type = 'New Customer';         }     } }

Create a new trigger on opportunity which will set the stage name is prospecting and close date is 15 days from today.

trigger OpportunityTrigger on Opportunity (before insert) { if(Trigger.isBefore && Trigger.isInsert){ for(Opportunity oppObject: Trigger.New){ ...

Create an insert trigger on Lead, which will update rating as hot, whenever new Lead record is created.

To the above task create and trigger on Lead Object, and paste the below code to see results. trigger Leadtrigger on Lead (before insert) { ...

Salesforce Interview Question Answers | Part 4

Question 1. When Do You Use A Before Vs. After Trigger? Answer: 95% of triggers are before triggers – so if you’re unsure, go with before! You...

Don't miss