Introducing the Chargebee CLI

Create or update a subscription using Salesforce Flow Builder

Scope

What Chargebee actions are supported in Salesforce Flows?

What components can be added while creating screens?

Summary

Salesforce Flows provide a visual interface for designing business processes. They can include screens with input forms, decision points, and actions such as creating or updating records. You can use Flow Builder to create or update Chargebee subscriptions from Salesforce.

Solution

Using Salesforce Flows, you can perform the actions listed under Manage Chargebee > Product in Chargebee.

  • Create a subscription
  • Change a subscription

Create a Chargebee subscription

To create a subscription in Chargebee using Flow Builder, follow these steps:

  1. Go to Setup > Flows.
  2. Click All Flows > New Flow.
  1. Add components while creating the flow screen, or add attributes to the CB Managed Products section by clicking Custom and entering details such as Opportunity Id and Site or Domain Name in the right pane. Then click Done.
  1. Click Run at the top of the flow. Select New Subscription, then choose the Product Family, Add Plan, and Add Products. Click Finish to complete the flow.
  1. Verify the updated products in the subscription by navigating to Opportunities > Related > Products.

Change a Chargebee subscription

To change a subscription in Chargebee using Flow Builder, follow these steps:

  1. Go to Setup > Flows.
  2. Click All Flows > New Flow.
  1. Click Edit Element > Components > Custom.
  1. Enter the Opportunity Id, Site or Domain Name, and the existing Subscription Id for the change action.
  1. Click Run at the top of the flow and select Change Subscription. You can then edit the plan or delete the plan, add discounts, and add products. Click Finish to complete the flow.
  1. Verify the updated products in the subscription by going to Opportunities > Related > Products.