Lightning Picklist Component

designthinking

By using lightning component, you can Retrieve List of Picklist values from any custom and Standard object.Lightning Component can be Reused in Different components by passing object Name and Field Name.

Create Apex Class:

Lightning PicklistComponent:

LightningPicklistController.js:

You can use  this component in different Lightning components to get Picklist field and its value.Below code should in after at the starting of component tag.

<aura:attribute name=”picklistValues” type=”Object” />
<c:PicklistValues sObjectName=”OpportunityfieldName=”StageName” picklistValues=”{!v.picklistValues}” />

Modify the sobjectName and fieldName to Retrieve picklist field and its values from objects.

Paste this below Line of code in Components and based on the sobjectName and fieldName it will Retrieve picklist field.

Reference:

https://trailhead.salesforce.com/projects/workshop-override-standard-action/steps/override_2

Advertisements

Email Lightning Component to send and Receive Email for standard and custom objects

Requirement:

1.) I’m sending Email to Lead.

2.) Lead has to send Reply email in the same loop.

3.)Replied  Email Histories should be stored in the Detail page of particular Lead.

4.This should work in both Lightning Experience and Community.

For Example, I had considered Lead..But this should be implemented for all objects like Account, Contact, Lead Opportunity,Quote and Custom Object,Because Business Requirement is to Track all The email in same Record.

Email post

Prerequesites:

1.  Create Email Service.
2. Create Custom Fields In Email Message object for standard and custom Object which Requires Email Messages to be in the same Record.
3. I have Created Custom Fields in Email Message object Lookup to Account, Contact, Lead, Opportunity,Quote Fields like this Account__c,Contact__c,Lead__c,Opportunity__c,Quote__c.
4.List Components:

PARENT COMPONENT:
1. EmailConversation (Component).
2. EmailConversationController (Controller).
3. EmailConversationHelper (Helper).
4. EmailConversationStyle (css).
5. EmailConversationCntl (Apex Class to Retrieve and Display email Messages).

6. Email Outbound Message Class (Apex Class to send Email ).
7. Email Inbound Message Class (Apex Class to Receive Email).
8. EventCloseModelPopup (Lightning Event).

Email message parent component

CHILD COMPONENT:
9. EmailComponent (Component).
10. EmailComponentController (Controller).
11. EmailComponentHelper (Helper).
Email message child component

PARENT COMPONENT:

EmailConversation (Component):

EmailConversationController.js:

EmailConversationHelper.js:

EmailConversationStyle.css:

EmailConversationCntl (Apex Class):

Note:

After creating Emailconversation component,create outbound and Inbound Email Message Apex Class.Then you can create Related to child Components.while creating Child components apex outbound and Inbound Email Message Apex Class are Referenced, so if we create child components before it will throw error.

Email Outbound Message Class (send Email ) :

Email Inbound Message Class (Receive Email) :

Lightning Event:

Here

EventCloseModelPopup:

CHILD COMPONENT:

EmailComponent :

EmailComponentController :

EmailComponentHelper :

 OUTPUT:

LIGHTNING SUMMER 18 GEMS

Untitled design

FIND YOUR SUMMER18 GEMS:

1.NESTED FOLDER :

Nested folder.png

2.NEW LIGHTNING UI FOR REPORTS:

New UI report

3.DATA TYPE SEARCH FILTERS IN REPORT:

Different Field Data Type Filters available,
1.Text
2.Numeric
3.CheckBox
4.Date
5.Picklist

report data type filters

4.CUSTOM TASK LIST VIEW:

 

Custom List View

5.SPLIT VIEW FOR TASKS:

Split view for tasks

6.CASE TEAM AVAILABLE IN LIGHTNING:

Case Teams.png

7.DRAG AND DROP TO ADD FILES:

Drag and Drop add file

Now you can Attach Mutliple files by Drag and Drop,

Attach Multiple files

 

8.EDIT PAGE LAYOUT FROM RECORD DETAIL PAGE:

edit layout.png

9.QUICKER WAY TO MOVE TO SERVICE SETUP:

New actions

10.SUBSCRIBE TO DASHBOARDS & ADD MULTIPLE RECEIPTENTS:

Dashboard Reciptents

11.CREATE NEW LIBRARY:

New Library

12.PATH ON WORK ORDERS:

Work order.png

 

NOTE:

Some features in SUMMER ’18 may be Released in schedule time,nor it might not be available.These above features content are from my knowledge which I found these informations via Lightning Experience Roadmap and from Ideas.So wait until you get the official confirmation from salesforce Release notes whether these features may be Released or not.So watch out Trailblazer community Release Readiness Group for more Details about summer18 features..

Hope This Helps !!!!

 

Component Library (Beta)

component Library

Explore the New look and feel of components:

Check New Lightning Component Library in Pre Release Orgs,with Pre Release Domain.
Like this..

https://gs0.lightning.force.com/component-library/overview/components

New Component Library for a complete collection of components available to you.

https://YourDomain.lightning.force.com/componentReference/suite.app

For Example like this :

domain

For an unauthenticated experience,

Go to https://developer.salesforce.com/docs/component-library.

For JavaScript API documentation,

https://yourDomain.lightning.force.com/auradocs/reference.app

Note:

If you find something in the Aura framework documentation that’s not available in the Component Library, we recommend that you don’t use it as the support might change in future releases.

Hope this Helps!!!!

Email Service

email servicewhy we need Email Service ?

Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages. Each email service has one or more email service addresses that can receive messages for processing.

1.Create New Email Service.

Email Service

2.Create Inbound Email Apex Class to process the contents, headers, and attachments of inbound email.

Similar Like This,

3.Add Inbound Email Apex Class to Email service.

Ems1

4.After Creating Email services, Add Email Address

ems2.png

When you Create Email Address this will be attached to replyto () in Outbound Email Message so that when ever user Reply to Email Message or this Email address Record will be created or Updated Based on the Inbound Apex Class.Email sent to the email service address can be created as any Records in objects or Email Messages for particular Record based on Buisness Use Case.

For Reference:

Email Services:
https://help.salesforce.com/articleView?id=code_email_services.htm&type=5
https://help.salesforce.com/articleView?id=code_inbound_email.htm&type=5
https://developer.salesforce.com/page/An_Introduction_To_Email_Services_on_Force.com

BIG OBJECTS and Its PRICING

Big Object1

when I was Reading about Big objects I have seen a Comments from customer  Regarding the big objects..These are Comments from customer in Traiblazer community.

Last week we rolled our big objects as auto archiving solution. During the entire development I have had in my head the after reading the trailhead and implementation guide is that Salesforce makes it clear that its for millions or hundreds of millions or billions of records on the same platform with no mention of extra costs. However after only deploying to production and looking for a way to confirm the initial archive worked that wasn’t workbench (was displaying a total of -1 for some reason) for a few hundred thousands records do we discover we can see it from setup – company information – data usage. This is when I saw for the first time a limit of 1 million.

Big Object Storage Capacity Limits:

I have now found out from our Salesforce Account executive. the cost is $16,800 AUD per year per 50M records (we can’t buy it in any smaller amounts). Isn’t 50M completely overkill for small business of less than <100 users who have a data limit no where near proportional to this? Using us as an example we projected to put maybe 0.5M records into BO per year.

See attached screenshot for objects and Data storage Limits for Big Objects.This screenshot is from Developer limit Guide.

big objects.png

For Reference about Big Objects,

Trailhead:

https://trailhead.salesforce.com/modules/big_objects