Skip to content

snugsfbay/GetOrgLimits

 
 

Repository files navigation

GetOrgLimits Lightning Components

Get org wide usage/limit using System.OrgLimits.getMap() then show them with progress bar.

Usage

Put Aura Component or LWC on Lightning Page or UtilityBar.

Included components

  • Apex class: GetOrgLimits.cls
    Server side controller for both aura and Lightning Web Component.
  • Aura Component: orgLimits_aura
  • Lightning Web Component: orgLimits_lwc

Note: Both Aura Component and LWC work as same. You don't have to install both.

How to install

Besides installing by metadata api / sfdx command, you can install them as an unlocked package;

  • sfdx force:package:install --package 04t0I000000jDz4QAE

or

Issues

Sometimes System.OrgLimits.getMap() failes with Insufficient Privilege.


Japanese explanations

System.OrgLimits.getMap() を使用して組織レベルの制限と現在の使用量をバーチャートで表示します。

使用法

AuraコンポーネントもしくはLightning WebコンポーネントをLightningページもしくはユーティリティバーに配置してください。

含まれるコンポーネント

  • Apex class: GetOrgLimits.cls
    aura/LWC共通のサーバサイド・コントローラ
  • Auraコンポーネント: orgLimits_aura
  • Lightning Webコンポーネント: orgLimits_lwc

Note: auraコンポーネントとLWCの機能は全く同じですので、両方を使用する必要はありません。

インストール方法

git cloneしてmetadata api/sfdxコマンドでインストールする以外にロック解除済パッケージとしてインストールすることができます。

  • sfdx force:package:install --package 04t0I000000jDz4QAE

あるいは

Screen Shot 2019-12-12 at 14 05 19

About

Lightning Components to get and show Org wide limits.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.7%
  • Apex 40.4%
  • HTML 17.9%