­
ForceTree.com
apex

Run Account Territory rules (ETM) fom Apex

11:48 AM
 Enterprise Territory Management (ETM) rules on Account are run automatically when creation of an Account. However, they do not run automatically on account update. Out of the box, here are some options available.Include the checkbox on the layout                                  Run the ETM rules from settings, setup -> territory models -> pick a territory and run all rules assigned to the territory   Here are some limitations...

Read More...

HTTP callout

How to make a REST callout from LWC component

4:44 PM
 Here's some sample code demonstrating a basic REST callout from an LWC component using Apex:LWC component (lwcMyComponent.js): This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters import { LightningElement, api, track } from...

Read More...

LWC

Passing parameters between lightning LWC components

11:36 AM
There are two main ways to pass parameters between LWC components in Salesforce:1. Using Public Properties with the @api decorator:This method is ideal when there's a parent-child relationship between the components. Here's how it works:Parent Component:Define a property in the parent component's JavaScript file.Mark the property with the @api decorator to make it accessible by the child component.Assign a value to the property...

Read More...