# Article Name 4 Ways to Monitor Spending in Your Salesforce Account # Article Summary Explore four effective methods to monitor spending in your Salesforce account and ensure budget control and financial efficiency. # Original HTML URL on Toriihq.com https://www.toriihq.com/articles/how-to-monitor-spend-salesforce # Details Keeping an eye on your spending in Salesforce can feel overwhelming, but it doesn’t have to be. With the right methods in place, you can stay on top of your budget and ensure financial efficiency without breaking a sweat. In this article, we'll explore four effective ways to monitor your Salesforce account spending. These strategies will help you track your expenses and make smarter decisions, so you can focus on what really matters, growing your business. ## Use Salesforce's UI Here, you’ll use built-in Salesforce pages to confirm costs and see how quickly those entitlements disappear. ### 1. Open the Your Account app - Click the App Launcher (the waffle). - Type “Your Account” in the search box and pick the app. Salesforce Help covers this in the “Your Account App Overview.” ### 2. Check your subscriptions - In the left sidebar, choose Subscriptions. - The grid shows each product, the number of licenses, and the price per term. - Need more detail? Click the product name. You’ll see start and end dates, renewal info, and any add-ons. ### 3. Review upcoming invoices - While you’re still in the Your Account app, click Invoices. - Scan the list for the next bill date and amount. - Select any invoice to view a line-item breakdown or download a PDF for accounting. ### 4. Track usage-based entitlements - From Setup, enter “Usage” in Quick Find and pick Usage-Based Entitlements. (See Salesforce Help: “Monitor Your Usage-Based Entitlements.”) - The table lists items such as API Calls, Digital Engagement Messages, or Data Storage. For each item, note: - Total units purchased - Units used this month - Units remaining - See a number in red? You’re over 100 % for the period and will see an overage fee on the next invoice. ### 5. Set up limit alerts (optional but smart) - On the same Usage-Based Entitlements page, click the bell icon next to any entitlement. - Pick a threshold, for example 80 %, and save. - Salesforce emails you when you cross that line so you can adjust before extra charges land. ### 6. Export data for finance - In the Your Account app, open Invoices again. - Use the Export button to pull a CSV of all invoice headers or drill-down details. - Hand that file to finance or load it into a spreadsheet for your own trend chart. ## Use Torii Instead of accessing Salesforce directly, consider using Torii [https://www.toriihq.com/], a SaaS Management Platform, to monitor your spending in Salesforce. SMPs offer a consolidated view of your SaaS subscriptions, helping you establish a trustworthy source of information for all your SaaS solutions. To track spending in Salesforce through Torii, follow these steps: ### 1. Register for Torii Contact Torii Sales [https://www.toriihq.com/info/request-a-demo] to request your complimentary two-week proof-of-concept. ### 2. Link your Salesforce account to Torii Once your account is activated, connect Salesforce to Torii (if you have an existing account). Check the guidelines for integrating Salesforce [https://support.toriihq.com/hc/en-us/articles/5195073819035-Salesforce-Integration]. ### 3. Look for Salesforce in Torii Use the search feature at the top of the Torii dashboard to locate Salesforce. This will lead you to your Salesforce page, where you can view essential details about the account, including the number of licenses, total spending, next renewal date, and more. ### Or, chat with Eko Torii's AI companion, Eko [https://www.toriihq.com/eko], helps you find Salesforce information directly in Torii. Just click the Eko icon in the bottom right corner of your dashboard to request Salesforce details. Eko will deliver the relevant data right in the chat window. ## Use Salesforce's API Below, you’ll pull spend totals straight from Salesforce, skipping dashboards for direct API calls. ### 1. Get your access token - Send a POST to the OAuth 2.0 token endpoint - Salesforce returns accesstoken, instanceurl, and tokentype. Keep them handy. ### 2. Build a SOQL query that sums spend Decide where you store spend. In many orgs the total lives on the Opportunity Amount field or a custom field like TotalSpendc on a custom object. Either way, you can group and sum in one call. Example: total spend by Account for the last 30 days, assuming spend sits on Opportunity Amount. ### 3. Call the REST API with your query The response comes back as JSON rows like: ### 4. Page through long result sets If "done": false, grab the nextRecordsUrl value and call it: Repeat until "done": true. ### 5. Track spend over time with dated subqueries Need monthly spend for the past year? Loop through 12 queries, each using a custom date range: Store each month’s total in your own data store or reporting tool for trend charts. ### 6. Keep an eye on API limits - Call /services/data/v59.0/limits to see remaining daily API calls: Parse the DailyApiRequests block and pause requests when you’re close to the limit. ### 7. Automate and alert - Schedule the script in your job runner (cron, GitHub Actions, etc.). - After each run, compare the returned totals against budget thresholds. - If spend passes a limit, trigger your alert system (Slack, email, SMS). That’s it. A handful of REST calls and a short loop put real-time spend data wherever you need it, clicks optional. ## Use Claude (via MCP) You can obtain this information directly from Claude using the Model Context Protocol (MCP). Claude is an AI chatbot developed by Anthropic, providing an alternative to ChatGPT. To track your spending in Salesforce using Claude, follow these steps: ### 1. Configure Torii Begin by following the Torii [https://www.toriihq.com/] instructions to connect your Salesforce account with Torii. ### 2. Enable MCP in Claude Consult these Torii MCP guidelines [https://www.npmjs.com/package/@toriihq/torii-mcp?activeTab=readme]. Additionally, there’s a blog entry [https://www.toriihq.com/blog/introducing-model-context-protocol-in-torii] detailing this topic. Install the Claude Desktop application. Then, modify the claudedesktopconfig.json file with these entries: You can generate this API key in the Settings section of Torii. ### 3. Interact with Claude Once the setup is complete, engage with your Torii environment directly through Claude. For instance, you can ask Claude to review your Salesforce account, helping you uncover details like the number of licenses you have, your spending, renewal dates, and more. ## Torii for SaaS Management If you're interested in SaaS Management, reach out to us. Torii's SaaS Management Platform provides the tools to: - Discover hidden applications: AI continuously monitors your organization for unauthorized software in real-time. - Reduce expenses: Cut spending by eliminating unused licenses and overlapping tools. - Streamline onboarding and offboarding automation: Improve your IT operations to boost efficiency and reduce errors, covering the onboarding of new hires and the offboarding of departing employees. - Receive alerts for contract renewals: Stay on top of critical contract renewal deadlines. Torii is known as the first comprehensive SaaS Management Platform in the industry, offering a unified view for Finance, IT, and Security teams. Learn more by visiting Torii [https://www.toriihq.com].