billing-schedule-setup
Source-available Salesforce knowledge layer for AI coding assistants. 1,039 skill packages, 50 runtime agents, 69 slash commands/MCP prompts, and a 38-tool MCP server with live-org metadata.
Install / Use
npx skills add PranavNagrecha/AwesomeSalesforceSkills --skill billing-schedule-setupInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
SalesSupported Platforms
Our assessment of billing-schedule-setup
billing-schedule-setup scores 67/100 on our quality scale, 27th of 29 Sales skills we index.
Its SKILL.md is 16 KB long, well organised into 16 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- We could not determine when the repository was last updated.
- Our last check on 2026-09-24 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 68/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
billing-schedule-setup compared with similar skills
All 4 of these similar skills score higher than billing-schedule-setup; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| billing-schedule-setup (this skill)by PranavNagrecha | 67 | 0 | — | SKILL.md |
| Agent-Reachby Panniantong | 100 | 86.2k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.5k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install billing-schedule-setup?
- Run
npx skills add PranavNagrecha/AwesomeSalesforceSkills --skill billing-schedule-setup. The install tabs above show the steps for each supported agent. - Which AI agents does billing-schedule-setup work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is billing-schedule-setup safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 68/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is billing-schedule-setup still maintained?
- We could not determine when the repository was last updated.
Skill content
View source on GitHubname: billing-schedule-setup description: "Configure Salesforce Billing (blng__ managed package) billing schedules, invoice plans, billing policies, and billing treatments on activated Orders. Triggers: 'billing schedule not generating invoices', 'blng__BillingSchedule__c missing after order activation', 'in-advance vs in-arrears billing', 'milestone billing', 'invoice run not picking up order products', 'evergreen billing setup', 'billing treatment configuration'. NOT for revenue schedules, GL transactions and ASC 606 - use admin/revenue-recognition-requirements. NOT for native Revenue Cloud (RLM) BillingSchedule objects - use data/revenue-cloud-data-model." category: admin salesforce-version: "Spring '25+" well-architected-pillars:
- Reliability
- Performance
- Operational Excellence triggers:
- "billing schedule not created after activating the order in Salesforce Billing"
- "invoice run batch job is not picking up order products or generates empty invoices"
- "how do I configure in-advance versus in-arrears billing schedules for subscription products"
- "milestone billing invoice requires manual trigger not firing automatically"
- "blng__BillingSchedule__c records are missing or show wrong amounts on OrderProduct"
- "how to set up Legal Entity, Billing Policy, and Billing Treatment in the right sequence"
- "evergreen billing schedule keeps stopping instead of rolling forward each period" tags:
- billing-schedule-setup
- salesforce-billing
- blng-namespace
- invoice-run
- billing-policy
- billing-treatment
- in-advance
- in-arrears
- milestone-billing
- evergreen-billing inputs:
- "Salesforce org with Salesforce Billing managed package (blng__ namespace) installed on top of Salesforce CPQ"
- "Activated or draft Order with OrderProducts sourced from a CPQ Quote"
- "Product2 records with blng__BillingRule__c and blng__RevenueRecognitionRule__c lookups populated"
- "Confirmed whether Data Pipelines is enabled in the org (hard dependency)"
- "Billing schedule type requirement: In-Advance, In-Arrears, Evergreen, Milestone, or Dynamic Invoice Plan"
- "Legal Entity name and Tax Policy to associate with Billing Policy" outputs:
- "Configured Legal Entity, Billing Policy, Billing Treatment, and Tax Policy records in the correct dependency order"
- "blng__BillingSchedule__c records auto-generated per OrderProduct upon Order activation"
- "Invoice Run configuration that batches billing schedule items into blng__Invoice__c records"
- "Guidance on schedule type selection with documented tradeoffs"
- "Checklist confirming Data Pipelines dependency, governor limit awareness, and batch size alignment" dependencies: [] version: 1.0.0 author: Pranav Nagrecha updated: 2026-04-07
Billing Schedule Setup
This skill activates when a practitioner needs to configure Salesforce Billing (blng__ namespace) billing schedules, invoice plans, billing policies, or billing treatments — from initial Legal Entity setup through Invoice Run execution. It covers In-Advance, In-Arrears, Evergreen, Milestone, and Dynamic Invoice Plan schedule types.
Before Starting
Gather this context before working on anything in this domain:
- Confirm the Salesforce Billing managed package (namespace prefix
blng__) is installed. Salesforce Billing is a separate managed package layered on top of Salesforce CPQ — it is not part of core Salesforce or CPQ alone. - Confirm Data Pipelines is enabled in the org (Setup > Data Pipelines). This is a hard platform dependency: without it, the Billing package cannot create billing schedule records even if all configuration is correct.
- Identify the required schedule type (In-Advance, In-Arrears, Evergreen, Milestone, or Dynamic Invoice Plan) — this determines configuration path and invoice run behavior.
- Confirm the OrderProducts are CPQ-sourced (via Quote > Order flow), not manually created — manually created Orders bypass CPQ fields required by Billing.
- Know the billing period (Monthly, Quarterly, Annually, Custom) and billing day-of-month required by the business.
Core Concepts
Billing Lifecycle: Order Activation Creates blng__BillingSchedule__c
The Salesforce Billing lifecycle begins when an Order is activated. At activation, the Billing package creates one blng__BillingSchedule__c record per OrderProduct that has a valid Billing Rule reference. Each blng__BillingSchedule__c holds the projected charge dates and amounts for that product's billing period. These records are auto-generated — do not create them manually.
The configuration chain that must be in place before Order activation:
Legal Entity → Billing Policy → Billing Treatment → Tax Policy → (Invoice Plan if Dynamic)
Each link in this chain is a lookup on the previous object. Missing any one link prevents billing schedule generation or invoice creation.
Schedule Types and Their Behavior
Salesforce Billing supports five schedule types, each controlled by the blng__BillingType__c field on blng__BillingRule__c:
| Type | Invoice Timing | Manual Trigger Required | Notes | |---|---|---|---| | In-Advance | Invoice issued before service period | No | Default for most subscription SaaS | | In-Arrears | Invoice issued after service period ends | No | Calculates from actual usage period end date | | Evergreen | Rolls forward each period indefinitely | No | No end date; must explicitly cancel | | Milestone | Invoice issued at milestone completion | Yes | Admin or Apex must trigger invoice run per milestone | | Dynamic Invoice Plan | Custom date-driven schedule | No | Requires separate Invoice Plan record |
The most commonly misconfigured: Milestone billing — practitioners expect it to fire automatically but it requires a manual Invoice Run scoped to the milestone date.
Invoice Run: Batch Processing and Governor Limits
Invoice Runs (blng__InvoiceRun__c) are the mechanism that aggregates blng__BillingSchedule__c items into blng__Invoice__c records. Invoice Runs execute as batch jobs, processing approximately 300 billing schedule lines per batch chunk to stay within Salesforce governor limits. For orgs with thousands of order products, this means a single Invoice Run may spawn many batch iterations.
Key Invoice Run fields:
blng__InvoiceDate__c— the date that appears on the invoice headerblng__TargetDate__c— the cutoff date; only schedule items on or before this date are processedblng__Status__c— Posted, Canceled, Draft; only Draft runs can be modified
blng__BillingSchedule__c vs blng__RevenueSchedule__c vs OpportunityLineItem Revenue Schedules
These are three entirely different constructs:
blng__BillingSchedule__c— Salesforce Billing managed package object; one per OrderProduct; controls invoice generationblng__RevenueSchedule__c— Salesforce Billing managed package object; controls revenue recognition timing (separate from billing timing)- OpportunityLineItem Revenue Schedule — standard Salesforce feature for splitting opportunity revenue; has no integration with the Billing package
Do not conflate these. Enabling "Revenue Schedules" in standard Salesforce Setup is unrelated to and does not replace blng__RevenueSchedule__c.
Common Patterns
Pattern 1: Standard Subscription Billing (In-Advance, Monthly)
When to use: A subscription product should invoice at the start of each monthly period.
How it works:
- Create a
blng__BillingRule__cwithblng__BillingType__c = In-Advance,blng__BillingDayOfMonth__c = 1(or contract start day),blng__InitialBillingDate__clogic set to Order Start Date. - Create a
blng__RevenueRecognitionRule__cif revenue recognition is required. - On the Product2 record, set the
blng__BillingRule__clookup to the new rule. - Ensure a Billing Policy exists with a Legal Entity and Tax Policy attached.
- Ensure the Billing Policy is set on the Account record (
blng__BillingPolicy__clookup on Account). - Activate the Order —
blng__BillingSchedule__crecords are created automatically. - Run an Invoice Run with
blng__TargetDate__cset to today or the desired billing date.
Why not the alternative: Manually creating blng__BillingSchedule__c records bypasses Billing Rule logic and produces orphaned records that Invoice Runs cannot reliably pick up.
Pattern 2: Milestone Billing for Professional Services
When to use: A services engagement invoices at project milestone completion (e.g., 30% at kickoff, 40% at delivery, 30% at acceptance).
How it works:
- Set
blng__BillingType__c = Milestoneon theblng__BillingRule__c. - Define milestone amounts on the
blng__BillingSchedule__cchild records (created at Order activation). - When a milestone is achieved, update the milestone record's status to indicate completion.
- Manually trigger an Invoice Run scoped to the milestone date — the run will only process lines where the milestone status is complete and the date is on or before
blng__TargetDate__c.
Why not the alternative: Using In-Advance for milestone billing creates invoices on fixed calendar dates regardless of project status, violating contract terms and creating disputes.
Decision Guidance
| Situation | Recommended Approach | Reason | |---|---|---| | SaaS subscription, invoice before each period | In-Advance billing schedule | Matches standard subscription contract terms; invoices auto-generate | | Usage-based billing, invoice after metering | In-Arrears billing schedule | Arrears calculates from actual period end; supports usage data import | | Month-to-month with no defined end date | Evergreen billing schedule | No termination date required; rolls forward indefinitely until canceled | | Professional services with milestone gates | Milestone billing with manual Invoice Run | Prevents premature invoicing; admin controls when each invoice fires | | Complex custom schedule (variable amounts by date) | Dynamic Invoice Plan | Supports arbitrary date/amount combinations outside period-based logic | | Need to invoice multiple order products on one invoice | Single Invoice Run with shared Invoice Date | Invoice Run aggregates multiple schedule items into one blng__Invoice__c per Account |
Recommended Workflow
Step-by-step instructions for an AI agent or practitioner working on this task:
- Verify prerequisites — Confirm Salesforce Billing (blng__) is installed, Data Pipelines is enabled, and the org has at least one CPQ-sourced Order in Draft status. Check that the Account has a
blng__BillingPolicy__cvalue set. - Build the configuration chain — In order: create or confirm Legal Entity (
blng__LegalEntity__c), then Billing Policy (blng__BillingPolicy__c) linked to the Legal Entity and Tax Policy, then Billing Treatment (blng__BillingTreatment__c) linked to the Billing Policy. Do not skip steps or reorder. - Configure Billing Rules on Products — Set
blng__BillingRule__con each Product2 record. Select the schedule type (In-Advance, In-Arrears, Evergreen, Milestone). Set billing period and day-of-month fields to match contract terms. - Activate the Order — Change Order Status to Activated. Confirm that
blng__BillingSchedule__crecords are created — one per OrderProduct. If records are missing, check Data Pipelines status and Billing Rule linkage. - Create and submit an Invoice Run — Create a
blng__InvoiceRun__cwithblng__InvoiceDate__candblng__TargetDate__cset correctly. Set Status to Posted to execute. Monitor the batch job in Setup > Apex Jobs for completion. - Validate invoices — Confirm
blng__Invoice__crecords are created with correct amounts, invoice dates, and line items. Confirmblng__BillingSchedule__crecords show the expected next billing date. - For Milestone billing only — After each milestone completes, manually trigger a scoped Invoice Run. Confirm that only the c
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
86.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.5k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
