UnofficialSF Lightning Flow Components

repository·master·Indexed 20 days ago

https://github.com/unofficialsf/lightningflowcomponents

A collection of installable extensions for Salesforce Flow, including screen components, apex actions, and local javascript actions. Features include AIConnect for OpenAI integration, Business Hours methods for time-based calculations, a Formula Evaluator for dynamic formula strings, and utilities like ConvertCSVToRecords, Check Validation, and the Analytics Notification API Action.

Tokens
33.2K
Snippets
65
Records
223
Agent score
68%

What's inside lightningflowcomponents

  1. Overview of MetadataService for Flow Developers

    master

    MetadataService is a streamlined subset of Andy Fawcett's Apex-MDAPI project, specifically optimized for use within Salesforce Flow projects. It provides a base library that allows Flow developers to interact with Salesforce metadata programmatically.

    For detailed documentation and usage instructions, refer to the official UnofficialSF guide.

  2. Overview of Metadata Manipulator Flow Actions

    master

    The Metadata Manipulator project provides specialized Salesforce Flow actions designed to read or write metadata directly within a Flow. These actions serve as utility functions for complex metadata operations that are not natively available in standard Flow Builder.

    Key capabilities include:

    • Reading Metadata: Extracting information such as layout fields or determining record types based on specific Profiles and Layouts.
    • Writing Metadata: Performing operations to modify metadata via Flow.

    Common utility examples include Get Layout Fields and Get Record Type from Profile and Layout.

  3. Overview of Datatable Package Contents

    master

    The Datatable installation includes several supporting assets required for its functionality:

    • Apex Classes: ers_QueryNRecords, ers_DatatableController, ers_EncodeDecodeURL (and their corresponding test classes).
    • LWCs: ers_comboboxColumnType, ers_customLightningDatatable, ers_datatableUtils, ers_datatableCPE, ers_richTextColumnType.
    • Custom Objects: ers_datatableConfig (Note: In v3.5.0+, this was replaced by FlowTableViewDefinition from the FlowScreenComponentsBasePack).
    • Static Resources: ers_customLightningDatatableStyles.
    • Permission Set: USF Flow Screen Component - Datatable.
  4. Use HTTPBuilder for no-code web callouts in Salesforce Flow

    master

    HTTPBuilder is a collection of Flow components designed to allow users to make web callouts (HTTP requests) directly from Salesforce Flow without writing Apex code. It provides a way to interact with external APIs by configuring request parameters within the Flow Builder interface.

    For detailed installation instructions, configuration guides, and specific component usage, visit the official UnofficialSF documentation: https://unofficialsf.com/no-code-web-callouts/

  5. Use the Barcode Scanner Flow Screen Component

    master

    The Barcode Scanner is a Flow Screen Component that allows users to scan QR codes (and potentially other barcode types in the future) to capture values for use within a Salesforce Flow.

    A common use case is scanning a QR code that contains a Salesforce Record ID, which can then be used to navigate the user to that specific record within the Salesforce App or a Community.

  6. Core features of the Datatable Flow Screen Component

    master

    The Datatable is a versatile Flow Screen Component used to display and interact with SObject collections.

    Key Capabilities:

    • Data Display: Supports standard and custom SObjects, including lookup fields (displayed as clickable links), rich text, and picklists (displays labels instead of API names).
    • Selection Modes: Supports multi-select (Checkboxes), single-select (Radio Buttons), or hidden selection columns.
    • Sorting & Filtering: All columns are sortable. Individual columns can also support filtering.
    • Inline Editing: Supports inline editing of records. Only the edited records are passed back to the Flow to optimize performance.
    • Customization: Allows overriding column properties such as alignment, editability, header icons, labels, and initial widths.
    • Advanced Data Types: Supports Apex-Defined Objects and serialized JSON strings of user-defined objects.
    • Pagination/Limits: Users can set a maximum number of rows to display.
    Required parameters:
    - SObject collection of records
    - List of field API names
  7. Use the Get NBA Recommendations Flow Screen Component

    master

    The Get NBA Recommendations FSC is an Aura wrapper for the standard lightning:nextBestActions component. It enables the use of Salesforce's Next Best Action (NBA) functionality directly within a Salesforce Flow Screen.

    Because it is a wrapper, it inherits all attributes from the original lightning:nextBestActions Aura component. You can use this to display recommended actions to users during a guided flow process.