Salesforce

Salesforce

How to get Record Type Id by overriding standard action in Salesforce Lightning?

Add lightning:actionOverride and lightning:hasPageReference to the list of interfaces in the aura:component tag. Sample Code: Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference" > <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> Lightning Component JavaScript Controller: ....

Salesforce

Overriding New button in Salesforce Lightning Experience with a Custom Lightning Aura Components

Navigate to a lightning component or standard record page creation based on Record Type in Salesforce Lightning NewContact Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference"> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> NewContact Lighting ....

Salesforce

How to show DateTime in Visualforce page in User’s Time Zone instead of GMT in Salesforce?

Sample Code: <apex:page StandardController="Opportunity"> GMT: <apex:outputText value=" {0,date,M/d/yyy h:mm a}"> <apex:param value="{!Opportunity.LastModifiedDate}"/> </apex:outputText> <br/> User Time Zone: <apex:outputField value="{!Opportunity.LastModifiedDate}"/> </apex:page> Output: For using apex:outputText tag use <apex:page> <table> <tr> <td><apex:outputText ....