GithubHelp home page GithubHelp logo

johnsfdemo / followers Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.09 MB

This package includes a Lightning component for displaying the current followers of a Salesforce record and an invocable Apex method that sets a user as a follower of a record that can be called from a Process Builder process or Flow Builder flow.

License: GNU General Public License v3.0

CSS 5.76% JavaScript 11.55% Apex 82.69%
salesforce-developers salesforce-lightning-components salesforce-apex

followers's Introduction

Followers Utilities

This package includes a Lightning component for displaying the current followers of a Salesforce record and an invocable Apex method that sets a user as a follower of a record that can be called from a Process Builder process or Flow Builder flow.

Followers Lightning Component

Here is how the Lightning component looks on a record page:

Followers Lightning Component

To include the component on a page, simply use Lightning App Builder as shown:

Lightning App Builder

CreateFollower

This invocable Apex method can be used from Process Builder or Flow builder to automatically assign a Salesforce user as a follower of a record. Here is an example using Flow Builder:

Select Apex Action Input Variables Output Variables

How to Deploy This Package to Your Org

I am a pre-sales Solutions Engineer for Salesforce and I develop solutions for my customers to demonstrate the capabilities of the amazing Salesforce platform. This package represents functionality that I have used for demonstration purposes and the content herein is definitely not ready for actual production use; specifically, it has not been tested extensively nor has it been written with security and access controls in mind. By installing this package, you assume all risk for any consequences and agree not to hold me or my company liable. If you are OK with that ...

Simply click the button below and log into your org:

Deploy to Salesforce

Credits

This component is based on Lightning Followers, written by Daniel Wall at Salesforce.

followers's People

Contributors

johnsfdemo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

thisisjohnny

followers's Issues

Unable to install due to several issues during deployment

Deployment CompleteTest failure, method: CaseObjectRelatedTest.testCaseMethod1 -- System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Follow Salesforce Cases” process failed. Give your Salesforce admin these details. An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.: [] stack Class.CaseObjectRelatedTest.testCaseMethod1: line 10, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedCommentDelete -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedCommentDelete: line 158, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedCommentDeleteCustomSetting -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedCommentDeleteCustomSetting: line 252, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedItemDelete -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedItemDelete: line 95, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedCommentDeleteSysAdmin -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedCommentDeleteSysAdmin: line 65, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedItemDeleteCustomSetting -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedItemDeleteCustomSetting: line 212, column 1

Test failure, method: DisableChatterDeletesTestSuite.testFeedItemDeleteSysAdmin -- System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] stack Class.DisableChatterDeletesTestSuite.insertDummyContact: line 18, column 1
Class.DisableChatterDeletesTestSuite.testFeedItemDeleteSysAdmin: line 31, column 1

Test failure, method: EmailMessageTriggerTest.myUnitTest -- System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Follow Salesforce Cases” process failed. Give your Salesforce admin these details. An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.: [] stack Class.EmailMessageTriggerTest.myUnitTest: line 13, column 1

Test failure, method: FeedCommentTest.insertNewChatterPostTest -- System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Follow Salesforce Cases” process failed. Give your Salesforce admin these details. An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.: [] stack Class.FeedCommentTest.insertNewChatterPostTest: line 9, column 1

Code coverage issue, class: DisableFeedCommentDeletes -- Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
Code coverage issue -- Average test coverage across all Apex Classes and Triggers is 67%, at least 75% test coverage is required.

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.