Salesforce Visualforce Pages Metrics
Using VisualforceAccessMetrics object/entity in a Salesforce SOQL Query, we can track the number of views for each and every Visualforce page in our org receives in a 24-hour time period. ....
Using VisualforceAccessMetrics object/entity in a Salesforce SOQL Query, we can track the number of views for each and every Visualforce page in our org receives in a 24-hour time period. ....
To Show Activity Tab: Select Activity Timeline under Record Page Settings. To hide Activity Tab: Select Related ListsĀ under Record Page Settings. If the user is complaining that he is ....
1. Enable Allow site guest users to upload files in Salesforce Files General Settings. 2. Go to Community Preferences and update Maximum file size and file types. 3. Create a custom ....
Apex Unit Tests The Apex testing framework enables you to write and execute tests for your Apex classes and triggers on the Lightning Platform. Apex unit tests ensure high quality ....
To ensure that test methods always behave in a predictable way, any Salesforce Object Search Language (SOSL) query that is added to an Apex test method returns an empty set ....
Custom Object: Lightning Component: <aura:component implements = "force:appHostable" controller = "PhotoController"> <aura:attribute type = "String[]" name = "listURLs"/> <aura:handler name = "init" value = "{!this}" action = "{!c.onInit}"/> <div class = "slds-box slds-theme_default"> <aura:iteration items = "{! v.listURLs }" var = "imgStr"> <img src = "{! imgStr }"/><br/><br/> </aura:iteration> </div> </aura:component> Lightning Component JavaScript Controller: ({ onInit : function( component, event, helper ) { ....
When you provide a timestamp or JavaScript Date object, lightning:relativeDateTime displays a string that describes the relative time between the current time and the provided time. Sample code: Component: <aura:component implements = "force:appHostable"> ....
The Metadata API component for Lightning Web Component (LWC) is LightningComponentBundle. package.xml: <types> <members>LWC_Component_Name</members> <name>LightningComponentBundle</name> </types>
Workflow Rule: Field Update: Output:
Dom.XMLNode can be usedto parse XML string in Salesforce using Apex. Sample XML: <?xml version="1.0" encoding="UTF-8"?> <breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description>Two of our famous Belgian Waffles with plenty of ....