Posts

API Usage Notifications

Image
 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...
Image
  Understanding Salesforce Outbound Messages Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers. After you set up outbound messaging, when a triggering event occurs, a message is sent to the specified endpoint URL. The message contains the fields specified when you created the outbound message. Once the endpoint URL receives the message, it can take the information from the message and process it. Outbound messaging uses the  notifications()  call to send SOAP messages over HTTP(S) to a designated endpoint when triggered by a workflow rule.  Outbound messages need an endpoint URL which we need to mention while configuring outbound messages.  You can use a postman or any of the following to create your own endpoint. 1. Requestbin   2. Hookbin 3. Requestcatcher   4. Integration Playground for our example, we will use Integration Playground Defini...
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...
Image
lightning-input error message using Validity methods When using lightning-input component, we can use validity methods (setCustomValidity, reportValidity, checkValidity) to display error messages. Reference: lightning component reference
Salesforce Community Templates Community templates let you build responsive communities for delivering rich, branded spaces for your customers and partners. With Community Builder, you can edit the lightning template components to add information about your community, add images and CMS content with writing a single line of code. You can also create and add custom pages, build a lightning component and expose your salesforce objects. Types of Templates: 1. Aloha:  A configurable App Launcher template that lets users quickly find applications and access them using single sign-on authentication, including social logins. 2. Customer Account Portal:  The Customer Account Portal template improves customer relationships and decreases service costs. The template provides features that make it easy for customers to see and pay invoices, update their account information, and search your knowledge base for answers. Features: a. Lightning community pages and components b. ...
Image
Steps to create Multilingual Community 1. Set the default language: This setting is not associated with the default language settings in your Salesforce org. By default, English is the language in which community content displays.  1.a. In the community on the left sidebar, click on the gear icon and select Languages. 1.b. Select a language in the Default Community Language. 2. Add Language to community: Click on the Add Language button and select the languages you wanted to add to your community and save your changes. once save you can select any the following settings 2.a. Active on Live Community : This checkbox controls whether the language is available to community visitors in the language selector. 2.b. Fallback Language : Controls which language to display if the selected site language is unavailable. 2.c. Display Label : This setting define the display label for each language. The display label appears in any language pick...