Territory Management in Salesforce
Territory Management is an account sharing system that lets users access accounts based on the characteristics of the accounts, such as geography, product line, or business unit. A territory is ....
Territory Management is an account sharing system that lets users access accounts based on the characteristics of the accounts, such as geography, product line, or business unit. A territory is ....
1. When the record owner is changed through UI, there is a choice to keep associated teams. 2. When the record owners is changed through Data Loader, there is no ....
The ways to give object permissions to users in Salesforce are 1. Profile 2. Permission Set Cheers!!!
Standard Junction objects available in Salesforce are 1. OpportunityLineItem Junction object between Opportunity and Product objects. 2. PriceBookEntry Junction object between Product and Price Book objects. 3. CaseArticle Junction object between ....
UserInfo.getUserName().substringAfterLast('.') will give you sandbox name. The username will always ends with .Sandbox_Name in sandbox. Cheers!!!
URL.getSalesforceBaseUrl().getHost()) will give the URL of Salesforce instance. Sample Code: public Boolean isSandbox() { return URL.getSalesforceBaseUrl().getHost().left(2).equalsignorecase('cs'); } Another way to find is SELECT Id, IsSandbox, InstanceName, Name FROM ....
1. Constructor of the controller. 2. Action method of the page. 3. Getter methods. 4. If there are any client-side technologies on the page, such as JavaScript, the browser executes them. ....
Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:pageBlock > <apex:image value="{!photoURL}"/> </apex:pageBlock> </apex:page> Apex Controller: public class Sample { public String ....
Sample Code:global class SubscribeOrUnsubscribeLead { webservice static String subscribeLead(Id leadId) { List<EntitySubscription> listEntitySub = new List<EntitySubscription>(); listEntitySub = [SELECT Id ....
If you face this issue, modify the code as below alert(sforce.apex.execute("InfallibleTech.SubscribeOrUnsubscribeLead","unSubscribeLead",{"{!Lead.Id}"})); For String and Id, quotes should be used. Cheers!!!