New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Thursday 8 November 2018

too many items selected: 101 salesforce

If you add Multi-Selected field picklist values more than 100 'too many items selected: 101' error will come in Salesforce.
Note: if you are adding 200 values then 'too many items selected: 200' error will come.

Wednesday 21 February 2018

Dynamic Input Form from fieldsets with Lightning Component Salesforce

Following component will useful when you want to display the form fields by reading dynamically from the field sets and the following code supporting saving multiple records at a time.


Reference:
http://metillium.com/2017/08/lightning-field-set-form-component/

Friday 16 February 2018

Alternative to ligtning:icon in Lightning Component (Reusable SVG Lighting Component)

Requirement:
Multiple rows with close option should be displayed. On click on close icon beside a specific row it should be cleared. There is a need to give index for the icon if you use lightning:icon you cannot assign dynamic id as aura:id won't support dynamic value.

To achieve the above requirement it should be a html button/ html icon. To should the svg icon without using lighting:icon following approach will be helpful.

Reusable Lighting Component for svg icon -
Usage for the above component -
Note:
Go to LightingDesignSystem Website > Icons > save as the icon in IE browser (It should be saved in svg format). You can open the file in note pad and copy the pathd.

Friday 9 February 2018

Apex Method to convert json format records into List of Sobject Records format


The following method will be useful when you are supplying list of records as input to the Apex Method.

Note:
1. Passing List of Sobjects to the Apex Method from the Lightning component is not allowed.
2. you should convert Sobject list by using JSON.stringify(yourSobjects) and the Apex method input should be string.
3. The following method will be useful to convert above json fromat string into List<Sobject>

Please find the following Code -

Thank You,
http://onlinetraining.srinusfdc.com/