LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
        • How to Conditionally Color Data Table Cells
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Features
      • Copy and Paste
      • Debug Panel
      • Keyboard Shortcut
      • Undo / Redo
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • File Upload
    • Flow
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • 1. Overview
  • 2. Supported Components
  • 3. How it Works
  • 4. Use Cases
  • 5. Important Considerations
  • In Summary

Was this helpful?

  1. Component Builder
  2. Data & Interactions
  3. Data Sources

Picklist

Last updated 3 months ago

Was this helpful?

The Picklist Data Source lets you connect input components within your Avonni Dynamic Components to standard or custom picklist fields in your Salesforce org. This provides a seamless way to present users with pre-defined choices, ensuring data consistency and a user-friendly experience. The Picklist data source also supports record types.


1. Overview

The Picklist Data Source eliminates the need to enter or maintain picklist options within your Dynamic Component manually. Instead, the component dynamically retrieves the available values from a specified picklist field in Salesforce. This offers several advantages:

  • Data Consistency: Ensures that users can only select valid values defined in your Salesforce picklists.

  • Automatic Updates: If the picklist values in Salesforce are updated, the changes are automatically reflected in your Dynamic Component (no manual updates required).

  • Simplified Configuration: Reduces development time by leveraging existing Salesforce configuration.

  • Record Type Support: The Picklist Data Source respects record type restrictions. If record types control a picklist field's values, the component will display only the values appropriate for the current record's record type (if applicable).


2. Supported Components

You can use the Picklist Data Source with Avonni components designed for selecting options, such as:

  • And potentially others


3. How it Works

  1. Component Configuration: Within your Avonni Dynamic Component, select an input component that supports the Picklist Data Source (e.g., Combobox).

  2. Select Data Source: In the component's properties panel, find the "Data Source" setting (or similar) and choose "Picklist."

  3. Configure the Picklist Data Source:

    • Object API Name: Select the Salesforce object that contains the picklist field you want to use (e.g., Account, Opportunity, My_Custom_Object__c).

    • Field API Name: Select the specific picklist field from that object (e.g., Industry, StageName, My_Custom_Picklist__c).

    • Record Type ID (Optional): If record types control the picklist field's values, you can optionally provide a Record Type ID. This is typically done dynamically:

      • You'll usually get this ID from a variable or resource within your Dynamic Component, most likely from the @recordId (if on a record page) combined with a "Get Records" on the RecordType object to get the correct ID.

      • If you leave the Record Type ID blank, and there are Record Types, the component may show no picklist options.

      • If you leave the Record Type ID blank, and no Record Type are defined on the object, the component will display the values.

  4. Automatic Population: The component will automatically retrieve the valid picklist values (based on the object, field, and optional record type) and display them as options to the user.


4. Use Cases

Here are some examples of how you can use the Picklist Data Source:

  • Account Industry Selection: On an Account record page, use a Combobox component connected to the Industry picklist field on the Account object.

  • Opportunity Stage Selection: In a component for updating Opportunities, use a Combobox or Radio Button Group connected to the StageName picklist on the Opportunity object.

  • Custom Object Picklists: Use the Picklist Data Source with any custom picklist field on any custom object.

  • Case Origin Selection: You could have a custom picklist to set values on a case record page.


5. Important Considerations

  • Picklist Updates: Changes to the picklist values in Salesforce (adding, removing, or modifying options) will be automatically reflected in your Dynamic Component.

  • Record Type Dependencies: If the picklist field has record type dependencies, ensure you're providing the correct Record Type ID (or handling the scenario where no record type is specified).

  • Multi-Select Picklists: Some Avonni components (like Dual Listbox) can be used with multi-select picklist fields.

  • Access Control: The picklist values visible will respect user access and field level security.


In Summary

The Picklist Data Source is a simple yet powerful way to integrate your Avonni Dynamic Components with your existing Salesforce picklist configuration. It promotes data consistency, simplifies development, and ensures that your components always display the most up-to-date picklist options.

Combobox
Dual Listbox
List
Visual Picker