Blogs
-
Apex Trigger Practice (4) – Trigger to create Sales Team
Components Involved Account is parent Object of Opportunity Account has Owner field as User Account has related list called “Account Team” Likewise, Opportunity has related list called “Opportunity Team” Requirement When opportunity is created then automatically add Account Team member along with Opportunity Owner as part of the Sales Team (Opportunity Team).
-
Manage Community Member Programmatically
Add Community Member Salesforce stores community membership in object called NetworkMemberGroup. Although Salesforce says ‘create’ allowed on Network Member but seems that not allowed using apex code. No worries, we can make a post REST call for the same: First add your salesforce base url as remote site setting then add this code as part…
-
Execution of Trigger and Workflow – A practical Analysis
Target Record: A Case record with Status =”New” in Database. There is trigger which updates the value of Status =”Working” in before update event. There is workflow too which updates to Status to “Escalated”. So, we are going to analyze how system behaves in these scenarios: Lets play as below: P.S: In all events, old…