GithubHelp home page GithubHelp logo

mikesimps / primary-contact-lc-sfdx Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 7 KB

A small lightning component making it easy to highlight who the primary contacts are for an account based on their role.

JavaScript 17.22% Apex 82.78%
salesforce salesforce-lightning-components sfdx

primary-contact-lc-sfdx's Introduction

Primary Contact Lightning Component

A small lightning component making it easy to highlight who the primary contacts are for an account based on their role. This component is intended to added to an Account record page. I did this as a personal exploration into creating custom lightning components.

Getting Started

This project is stored in Salesforce DX format, so you will need to know how to work with sfdx projects using the cli or similar tool.

Prerequisites

You will need a tool that allows you to use the sfdx tools provided by Salesforce.

You must enable multiple account relationships for contacts

Setup > Account Settings > Allow users to relate a contact to multiple accounts

Installing

A step by step series of examples that tell you how to get a development env running

  1. Clone the git repo
  2. Convert the source to standard Metadata format using sfdx force:mdapi:convert command
  3. Deploy the component with sfdx force:mdapi:deploy command

Deployment

To use this component, you must add it to the Account record pages

  1. Navigate to edit the Lightning Page Layout (easiest way is to view an account Gear > Edit Page)
  2. In the Lightning Component list, under custom there should be a component named "Primary Contact". Drag this onto the page.
  3. There are two settings you can adjust based on your needs:

Title: The text that will display at the top of the component (Default - "Primary Contact(s)")

Role: The role (from the related contact list) that will be used to filter the contacts displayed. Only a single role can be used. (Default - "Decision Maker")




Usage

This should likely be a primary part of your page. It makes it clear who you should be working with and what their contact information is.

Deployed Example

Contributions

Please feel free to submit pull requests or ideas to make this better!

License

This project is licensed under the MIT License - see the LICENSE.md file for details

primary-contact-lc-sfdx's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

denverdoug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.