May 2020 archive

Lightning:recordForm

A lightning:recordForm component lets you to create forms to add, view, or update a record. Using this component to create record forms is easier than building forms manually with lightning:recordEditForm and lightning:recordViewForm. Additionally, this component takes care of FLS(field-level security) and sharing internally The component accepts a mode value that determines the user interaction allowed …

Continue reading

Permanent link to this article: https://salesforcebuddy.com/2020/05/lightningrecordform/

The entity name must immediately follow the ‘&’ in the entity reference

Did you ever encounter an error like this while working on Aura components ?  <lightning:tab label=”Skills & Competencies” id=”skils”>              Content here!!   </lightning:tab> Salesforce is complaining about the special character &, in order to fix it , change it to <lightning:tab label=”Skills &amp; Competencies” id=”skils”> and it works like a charm.

Permanent link to this article: https://salesforcebuddy.com/2020/05/the-entity-name-must-immediately-follow-the-in-the-entity-reference/

Salesforce Collections: Set, List

You can create a Set in Apex as below Set<String> colorSet = new Set<String> {‘Red’, ‘Blue’, ‘Orange’}; To create list, use the syntax below List<String> colorList = new List<String> {‘Brown’, ‘Black’, ‘Green’, ‘White’}; Convert from List to Set Set<String> newColorSet= new Set<String>(colorList); Convert from Set to List List<String> newColorList = new List<String>(colorSet); You can also …

Continue reading

Permanent link to this article: https://salesforcebuddy.com/2020/05/salesforce-collections-set-list/