What are all the ways to give object permissions to users in Salesforce?
The ways to give object permissions to users in Salesforce are 1. Profile 2. Permission Set Cheers!!!
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!!!
If you face "Problem with Onclick JavaScript 'No operation available for request...'" issue, check the below If you have Namespace prefix, you have to write the code as below in ....