All Projects → maaaaarco → Salesforce-Custom-Path-Assistant-LWC

maaaaarco / Salesforce-Custom-Path-Assistant-LWC

Licence: MIT license
A Salesforce custom path assistant built using only Lightning Web Components

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Salesforce-Custom-Path-Assistant-LWC

SF-Lightning-Lookup
Salesforce lightning dynamic lookup component.
Stars: ✭ 15 (-59.46%)
Mutual labels:  salesforce, salesforce-lightning
uswds-sf-lightning-community
A Salesforce Lightning Community Theme and related components built upon US Web Design System
Stars: ✭ 24 (-35.14%)
Mutual labels:  salesforce, salesforce-lightning
SimpleLightningComponents
A collection of custom Salesforce Lightning components to try to make Lightning development a little bit less frustrating
Stars: ✭ 37 (+0%)
Mutual labels:  salesforce-lightning, salesforce-lightning-components
PaymentForm
A form that takes credit card and address information. Uses a ported version of jessie pollack's card component.
Stars: ✭ 40 (+8.11%)
Mutual labels:  salesforce, salesforce-lightning
Salesforce-Short-Hands
The main purpose of this repository is to put all the utilities in one place so that other developers can get help and they can also contribute to this repo.
Stars: ✭ 31 (-16.22%)
Mutual labels:  salesforce, salesforce-lightning
Lightning-Out-Demo
How to use Lightning component in node.js (External websites) by using Lightning Out. It shows how to enable CORS and SSL in Node.js with Video and complete source code.
Stars: ✭ 17 (-54.05%)
Mutual labels:  salesforce, salesforce-lightning
spaghetti-cmd-loader
Salesforce Custom Metadata Type Loader, designed for Lightning Experience
Stars: ✭ 13 (-64.86%)
Mutual labels:  salesforce, salesforce-lightning
lwc-redux
Integrate Redux with Lightning Web Component
Stars: ✭ 35 (-5.41%)
Mutual labels:  salesforce, salesforce-lightning
Indicators
Indicators Lightning Web Component
Stars: ✭ 30 (-18.92%)
Mutual labels:  salesforce, salesforce-lightning
eslint-plugin-aura
Salesforce Lightning (Aura) specific linting rules for ESLint
Stars: ✭ 24 (-35.14%)
Mutual labels:  salesforce, salesforce-lightning
Sfpowerkit
A Salesforce DX Plugin with multiple functionalities aimed at improving development and operational workflows
Stars: ✭ 214 (+478.38%)
Mutual labels:  salesforce
Soqlx
SoqlXplorer is an awesome tool for developers using the Salesforce.com platform.
Stars: ✭ 220 (+494.59%)
Mutual labels:  salesforce
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (+24.32%)
Mutual labels:  salesforce
sfdx-lwc-jest
Run Jest against LWC components in SFDX workspace environment
Stars: ✭ 136 (+267.57%)
Mutual labels:  salesforce
Cumulusci
Python framework for building portable automation for Salesforce projects
Stars: ✭ 211 (+470.27%)
Mutual labels:  salesforce
wire-service-jest-util
Utility library for @-wire Lightning Web Component tests
Stars: ✭ 18 (-51.35%)
Mutual labels:  salesforce
Sfdx Mass Action Scheduler
🚀 Declaratively schedule Process Builder, Flows, Quick Actions, Email Alerts, Workflow Rules, or Apex to process records from Reports, List Views, SOQL, or Apex.
Stars: ✭ 200 (+440.54%)
Mutual labels:  salesforce
Haoide
Stop upgrade, most of features were delivered in https://github.com/xjsender/haoide-vscode
Stars: ✭ 194 (+424.32%)
Mutual labels:  salesforce
Apex Lambda
Functional programming for Salesforce Apex
Stars: ✭ 189 (+410.81%)
Mutual labels:  salesforce
sfmc-devtools
Fast-track your developers and devops engineers by allowing them to programmatically copy-paste / deploy changes and work offline
Stars: ✭ 94 (+154.05%)
Mutual labels:  salesforce

Salesforce-Custom-Path-Assistant-LWC

A custom path assistant built using only Lightning Web Components

Reasons

Main reason for this project is that currently is not possible to replicate the same look and feel of the Opportunity Sales Path using custom Path Assistants. When you create a new Path Assistant you can specify an Object, a picklist field and a record type... What you miss is the ability to defines which picklist values are mutually exclusive at the end of the path.

Example

We have a Project Object used to track the different implementation projects related to specified customers. Each Project record has a Status that can be:

  • New
  • In progress
  • On hold
  • Completed
  • Failed

We want to display the Status as a path on the Project record page. We want the path to be green in case the status is Completed, red in case the status is Failed. If we create a Path Assistant and then add the standard Path Lightning component to the record page this is what we get:

alt text

Not really want we wanted! As you can see both values Completed and Failed are displayed. Even worst seems that Failed is the status that comes after Completed.

Without creating the Path Assistant we can instead use the custom Lightning Component called pathAssistant. In the Lightning App Builder drag and drop the custom component on the record page and fill the form on the right like this:

alt text

This is the result on the record page

alt text

Users can now select the final Closed status and after pressing on the button Select Closed Status they'll be able to select the proper value

alt text

alt text

Depending on the final status they pick these can be the results:

alt text

alt text

Considerations

This Lightning Web Component is fully aware of its context when added to a Record page. This means that it's not object specific and can be added on any object that has a picklist field. It doesn't need to use an Apex controller thanks to the uiRecordApi module that provides method to update and retrieve records. In case your object has multiple record types the picklist values displayed are the one you enabled for it (same as standard Path Assistant). The only requirements this component has is that the picklist field, on which the path is based, has to be included in the Page Layout of the object.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].