Tag: Object API

  • What are Lightning Record Pages in Salesforce? | All You Need to Know

    What are Lightning Record Pages in Salesforce? | All You Need to Know

    Lightning Record Pages and Assignment Layouts are two important features of Salesforce that help users customize their experience and streamline their workflow. In this blog post, we will explore these features in detail and learn how they can be used to enhance productivity and efficiency in Salesforce. 

    Lightning Record Pages

    Lightning Record Pages are customizable pages that allow users to view, edit, and interact with records in Salesforce. These pages are designed to be responsive and optimized for use on desktop and mobile devices. 

    There are three types of Lightning Record Pages: 

    1. Standard Record Pages: These are pre-built pages that are included with Salesforce and are available for all standard and custom objects. 
    2. App Page: These pages are designed to be used within a specific app, and can include components such as charts, lists, and dashboards. 
    3. Home Page: These pages are the landing page for a specific app or object and can be customized with components such as news feeds, reports, and charts. 

    dont miss out iconDon’t forget to check out: What is Lightning Notification Library in Salesforce

    Customizing Lightning Record Pages

    Lightning Record Pages can be customized to meet the specific needs of users and organizations. Users can add, remove, and reorder components on a page, and can also create custom components to meet specific requirements. 

    To customize a Lightning Record Page, users can navigate to the page they want to edit and click the Edit Page button. From there, they can drag and drop components onto the page, edit component properties, and adjust the page layout. 

    Assignment Layouts

    Assignment Layouts are a feature of Salesforce that allows users to customize the fields and layout of a record based on the user or queue assigned to the record. This is useful for organizations that have multiple teams working on different types of records, as it allows each team to have a customized view of the record that is tailored to their specific needs. 

    Assignment Layouts are available for standard and custom objects in Salesforce and can be used in conjunction with other Salesforce features such as record types, page layouts, and profiles. 

    Creating Assignment Layouts

    To create an Assignment Layout, users must first enable the feature in their org. This can be done by navigating to Setup, selecting Object Manager, and then select the object they want to create an Assignment Layout for. 

    Once the feature is enabled, users can create a new Assignment Layout by navigating to the page layout editor for the object and selecting the Assignment Layout option. From there, they can add or remove fields, adjust the layout, and specify which fields are visible to which users or queues. 

    Using Assignment Layouts

    Once an Assignment Layout has been created, it can be assigned to users or queues based on specific criteria. This can be done by navigating to the object’s settings in Setup and selecting the Assignment Rules option. 

    From there, users can create new assignment rules based on criteria such as record type, lead source, or owner. They can then specify which Assignment Layout should be used for records that match those criteria. 

    Benefits of Using Lightning Record Pages and Assignment Layouts

    Lightning Record Pages and Assignment Layouts offer several benefits to users and organizations, including: 

    1. Customization: Both Lightning Record Pages and Assignment Layouts allow users to customize their experience in Salesforce based on their specific needs and workflows. 
    2. Efficiency: By customizing their experience, users can streamline their workflow and improve efficiency. This can help to reduce errors and increase productivity. 
    3. Collaboration: By using Assignment Layouts, multiple teams can work on the same records while having a customized view of the record that is tailored to their specific needs. This can help to improve collaboration and communication within an organization. 
    4. Accessibility: Lightning Record Pages are designed to be responsive and optimized for use on desktop and mobile devices. This makes it easier for users to access and interact with records from anywhere, at any time. 

    dont miss out iconCheck out another amazing blog by Mohit here: Data Migration using Data Import Wizard | All You Need to Know

    Tabs in Lightning Record Pages

    Org Default and App Default

    Org Default and App Default are settings in Salesforce that allow administrators to specify default settings for various objects, pages, and features in their org. These settings are applied by default to all users in the org but can be overridden by users who have specific permissions or roles. 

    Org Default settings are applied to all apps and objects in the org. This includes settings such as the default currency, default language, and default record type. 

    App Default settings are applied to specific apps within the org. This includes settings such as the default record type, default page layout, and default tab layout. 

    By setting Org Default and App Default settings, administrators can ensure that all users in their org have a consistent experience and can access the features and information they need. 

    App and Profile Tabs

    App and Profile tabs are used to manage the settings and permissions for specific apps and profiles in Salesforce.

    App tabs allow administrators to specify which apps are available to which profiles. This includes both standard and custom apps. By managing app tabs, administrators can control which features and information are available to each user in their org.

    Profile tabs allow administrators to specify the settings and permissions for specific profiles in Salesforce. This includes settings such as field-level security, object permissions, and page layouts. By managing profile tabs, administrators can ensure that each user in their org has the appropriate level of access and can perform the tasks they need to do.

    In Conclusion

    In this blog post, we have explored the features of Lightning Record Pages and Assignment Layouts in Salesforce. These features allow users to customize their experience and streamline their workflow, which can lead to increased efficiency and productivity. 

    We have also discussed Org Default and App Default settings, which allow administrators to specify default settings for various objects and features in their org, as well as App and Profile tabs, which are used to manage the settings and permissions for specific apps and profiles. 

    By leveraging these features in Salesforce, organizations can create a customized and streamlined experience for their users, which can lead to improved collaboration, communication, and productivity. 

  • Working and Usage of lightning:recordEditForm | Salesforce Developer Guide

    Working and Usage of lightning:recordEditForm | Salesforce Developer Guide

    Build a form with the lightning:recordEditForm component to add a Salesforce record or change fields in an existing record. The part shows fields along with their labels and current values, as well as allowing you to modify them.

    The following features are supported by lightning:recordEditForm.

    •  Provided the document ID, editing the required fields of a record.
    • Creating a record with the fields you like.
    • Changing the form’s layout.
    • Custom rendering of record data

    Use lightning:recordForm instead if you don’t need customizations.

    dont miss out iconDon’t forget to check out: 8 Foolproof Steps to Salesforce Classic to Lightning Migration

    Using lightning to specify editable fields:

    Provide feedback within the lightning, there are many field components: component recordEditForm. See the section on Editing a Record for more details. To display record fields as read-only in lightning:recordEditForm, use lightning:outputField components to specify those fields. You can also use HTML and other display components.

    Working with Salesforce Data:

    To build or update record data, lightning:recordEditForm uses Lightning Data Service and does not need any additional Apex controllers. This component also handles field-level protection and sharing for you, ensuring that users only see data that they have permission to see. See Lightning Data Service for more information.

    Allow lightning:recordEditForm to load and handle the data for you whenever possible.

    If you’re dealing with an object that the User Interface API doesn’t support, or if you need to select records using a SOQL query, you can use Apex. In the Lightning Aura Components Developer Guide, see using Apex for more details.

    Editing a Record:

    Pass in the record ID and the corresponding object API name to be edited to allow record editing. Using lightning:inputField, specify the fields you want to appear in the record edit layout.

    Include a type=”submit” lightning:button part. When you press the Enter key or click the button, the fields are validated and the values are sent.

    dont miss out iconCheck out another amazing blog by Marziya here: Flosum Tool – Release Management & Continuous Integration for Salesforce

    <aura:component>
        <lightning:recordEditForm recordId="002XXXXXXXXXXXXXXX" objectApiName="Contact">
            <lightning:messages />
            <lightning:outputField fieldName="AccountId" />
            <lightning:inputField fieldName="FirstName" />
            <lightning:inputField fieldName="LastName" />
            <lightning:inputField fieldName="Email" />
            <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update"/>
        </lightning:recordEditForm>
    </aura:component>