Blogs

  • Generate a hyperlink to a recordId in a Lightning Aura Component

    The lightning:formattedUrl component renders a hyperlink with an href attribute, presenting a read-only representation of a URL. The URL can be either relative or absolute. Code Example: <aura:component> <aura:attribute name=”recordId” type=”String” default=”0063X0000146rTLQAY”/> <lightning:formattedUrl value=”{!’/’ + recordId}” tooltip=”Opportunity” label=”Opportunity” target=”_blank” /> </aura:component>

    Read more…

  • Convert DateTime to a Date format in Apex

    OPTION 1: Create a date newInstance() and pass the Year, Month and Day from the dateTime. OPTION 2:  Get date from the DateTime using Date() method.

    Read more…

  • Different methods for deploying and receiving Platform Events in Salesforce

    Publishing There are several ways through which we can distribute platform events Subscribing There are various methods available for subscribing to platform events.

    Read more…