Sunday 5 May 2019

What is Lightning Web Component

Hi ,

I just want to give you small information about Lightning Web Component.

We can build Lightning components using two programming models:


  1. Original model, Aura Components
  2. Lightning Web Components

Lightning web components are custom HTML elements built using HTML and modern JavaScript. 
Lightning web components and Aura components can coexist and interoperate on a page.

To admins and end users, they both appear as Lightning components.

References:

Configure Default Field Values with Custom Metadata Types

Hi ,

Now with Spring 19 we can configure default field values with custom metadata types.
While creating fields you can defined the default value using formula expression. In formula expression you may not able to see the  record name with field from meta data type.

But you can following syntax to include one metadata record field value. 

$CustomMetadata.CustomMetadataTypeAPIName.RecordAPIName.FieldAPIName

Eg:

$CustomMetadata.DiscountPercent__mdt.IT.discount__c

Here
DiscountPercent__mdt - API name of the metadata type

IT - is API Name of the record in the metadata type

Discount__C- is  Field API Name of the metadata type where we configure discount value.


By using this you can avoid updating the data references when there is any default value change in future instead you just need to change in one location which reflects all references.


How to include a screen flow in a Lightning Web Component

 Hi, Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation". To i...