Posts

Showing posts from May, 2020

Salesforce Platform Events

Image
Hello Trailblazers, In this article we will discuss about the platform events. This covers basic idea of Platform Events, how platform events work, how to use Platform Events and some considerations for using Platform Events. Salesforce Platform Events follow Event Driven Architecture. So what is event driven architecture? In simple words, whenever any kind of action happens you notify someone with some message, and we call that action as an Event , message that it carries is known as Event Message , someone who is going to receive that message is known as Event Consumer , environment where action has happened is Event Producer and common channel through which Producer sends an event and receiver reads message is known as Event Bus . This is completely different from request-response structure, your system/application just have to subscribe to event channel and they will be notified in real-time whenever event occurs. Receivers are always in listening mode and more than one receive...

Generic Custom Lookup Lightning Web Component

Hello Trailblazers,   In this blog I have created generic lookup component using LWC which can be used directly without changing single line of code. You just have to pass object name, fields to be retrieved and fieldname on which search operation should happen while using this component along with event handler method, that’s it you are ready to use record captured in lookup field. Which makes it available for use multiple times in single component.    This example contains below main  components :   1.        GenericLookup   – Apex class for querying records   2.        genericLookup   - LWC Main component - This you will be using as per your need   3.        recordListItem   - LWC to render suggested records   First lets  have a look at GenericLookup class Now create  recordListItem  component This component is...