Lightning Web Component lightning-file-upload and edit file content A lightning-file-upload component provides an easy and integrated way for users to upload multiple files. The file uploader includes drag-and-drop functionality and filtering by file types. to use lightning-file-upload you must have recordId of the record that the uploaded file is associated with, lightning-file-upload component will appear to disable in the absence of recordId. Below code will upload the images and displays them with onclick functionality which will enable you to edit the title and description of uploaded files with delete functionality. Points to remember: 1. Not suppo rted in Lightning Out or standalone apps, and displays as a disabled input. 2. The file uploader cannot be used to u pload files with the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm, .shtml, .acgi, .svg. 3. lwc file-upload multiple don't work in android, In android you canno...
API Usage Notifications With this feature admins will receive an notification whenever an organisation exceeds a limit for the number of API requests made in a specified span of hours. Permission needed: Modify All Data Steps to Create an API Notification Login to Salesforce Go to Setup, and in quick find search and select "API Usage Notification" Click on New and enter the details 1. Notification Recipient: User who will receive the notification 2. Threshold: percentage of the rate limit, once exceeded in time interval, notification will flow to the recipient 3. Notification Interval (Hours): The time for which the number of requests is measured, in hours. Note: If you change the time period, the new time period does not take effect until after the next notification of the existing time period. For example, assume you have set the time period to send notifications every hour. Then at 4:05 p.m., you set the time period to send notifications every 24 hours. A last notificati...
Improve SOQL Performance SOQL (Salesforce Object Query Language) used to search Salesforce data for specific information. SOQL allows us to specify source object, a list of fields to retrieve and condition for selecting rows in source object. SOQL returns List<Sobject> To avoid long execution time, non-selective SOQL queries may be terminated by the system to improve the performance. A query is selective when one of the query filters is on an indexed field and query filter reduces the resulting number of rows below a system-defined threshold. The performance of the SOQL query improves when two or more filters used in the WHERE clause meet the mentioned conditions. Following fields are indexed by default and when used in SOQL WHERE clause improved the permormance. Primary Key (Id, Name and Owner fields) Foreign Keys ( lookup or master-detail relationship fields). Audit dates ( systemModStamp). Custom fields marked as External ID or Unique. NOTE: ...
Comments
Post a Comment