How to let Community Guest Users to add files in Salesforce?
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 ....
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 ....
Chatter feed posts and comments are not counted against your data storage limits. File storage includes files in attachments, Files home, Salesforce CRM Content, Chatter files (including user photos), the ....
dateStyle attribute can be used for lightning:input type="date" formatting in Salesforce Aura Component. Check the following code for reference. Sample Code: Component: <aura:component implements = "force:appHostable"> <div class="slds-box slds-theme_default"> <lightning:input name="input1" ....