Code Monkey home page Code Monkey logo

mani2246 / salesforce-enhanced-formula-editor-chrome-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kpeterson85/salesforce-enhanced-formula-editor-chrome-extension

0.0 1.0 0.0 2.77 MB

Enhances Salesforce formula textareas with the EditArea code editor and provides a "Load Field Details" button that list details about the fields found in the formula.

Home Page: https://kpeterson85.github.io/Salesforce-Enhanced-Formula-Editor-Chrome-Extension/

JavaScript 94.42% CSS 3.72% HTML 1.86%

salesforce-enhanced-formula-editor-chrome-extension's Introduction

Overview

The Salesforce Enhanced Formula Editor chrome extension enhances the formula textareas with the Edit Area code editor and provides a Load Field Details button that provides details about the fields found in the formula.

Editor Feature Includes:

  • Syntax highlighting
  • Tabbing (tab and shift-tab)
  • Parentheses matching
  • Find and Replace
  • No code wrapping
  • Resize editor window by clicking bottom right corner
  • Full screen feature

A new button is created named "Load Field Details" that loads details about the fields found in the formula.

Field Details Feature Includes:

  • Field type
  • How many times it is used
  • Formula field compile sizes
  • Field edit links
  • Field record values
  • Field Sub Details (shown by clicking the expand arrow)
    • Object Name
    • Field Label
    • Field Help Text
    • For picklist fields, their picklist values
    • For formula fields, their formula

Formula fields found in the formula will load the enhanced editor for their own formulas, even providing the Load Field Details for themselves, which allows you to drill down through all formulas used in the parent formula.

Overview Video

Video

How it Works

The extension looks for textareas with certain "id" attributes to identify formula input boxes. If one is found then it loads the Edit Area code editor using a custom language definition file for the Salesforce formula language.

If the extension can identify what object the formula is on then it will provide the "Load Field Details" button. The "Load Field Details" button parses out the fields and lists them on the page. The jsforce library is used to piggy back off the current user's session id for loading the features below:

  • To query the the Metadata API for the field type and sub detail information.
  • To query the Tooling API for field ids to load the Edit links directly to the fields.
  • To query the REST API for SOQL queries to return field values for a record.

Getting the Extension

To install released version

Install from the chrome web store

This version will automatically update and is the preferred way to install unless you plan to make modifications to the source.

To install from source

  1. Download to a folder
  2. Go to chrome://extensions
  3. Check developer mode, then load unpacked extension

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.