Finance on Salesforce

Customer credit limit change on Salesforce

Takes a request for a higher credit limit from the seller through the credit analyst to the approver, updates the credit profile and releases the orders the new limit covers.

SCREENSDATA HANDLERSSALESFORCE · READ IN PLACES01 RequestS02 AssessmentS03 ApprovalS04 ReleaseS05 Credit boarddh_credit_profileCredit profileAccount (credit fields) ·Account.CreditLimit__cdh_customer_masterCustomer masterAccountdh_sales_order_lineSales order lineOrder · OrderItemdh_quotationQuotationQuote · QuoteLineItem (or SBQQ__Quote__cwith CPQ)WRITE BACK TO SALESFORCECredit profile → PATCH sobjects/AccountSales order line → PATCH sobjects/Orderrows stay in Salesforce · access rules applied at read time · each write acknowledged and logged
The screens of the app, the data handler behind each, and the Salesforce object it reads in place. Writes below the line go through released interfaces with an acknowledgement.
4
objects read in place from Salesforce
catalogue
5
screens on those rows
catalogue
4 days
to production-grade
estimate
2
objects written back
catalogue
0
rows copied to build it
product
What the app reads

The Salesforce objects behind each handler

Objects are read in place through the REST and Bulk APIs, and changes arrive through Change Data Capture events, so a screen shows a record seconds after a seller edits it. The rows stay in Salesforce.

ObjectRead fromFields the app usesFreshness
Credit profileAccount (credit fields) · Account.CreditLimit__cAccount.Id (customer) · Account.CreditLimit__c (limit) · Account.OpenBalance__c (exposure) · Account.CreditRating__c (risk class)live through the API
Customer masterAccountAccount.Id / AccountNumber (id) · Account.Name (name) · Account.BillingCountry (country) · Account.OwnerId (territory) (sales org)live through the API
Sales order lineOrder · OrderItemOrder.OrderNumber (number) · OrderItem.Id (line) · Order.AccountId (customer) · OrderItem.Product2Id (material)live through the API
QuotationQuote · QuoteLineItem (or SBQQ__Quote__c with CPQ)Quote.QuoteNumber (number) · Quote.AccountId (customer) · Quote.TotalPrice (value) · Quote.ExpirationDate (valid to)live through the API
The trigger

The start criterion in Salesforce's own fields

In plain words: A seller submits S01 for a customer, usually from a blocked order or ahead of a large quote.

This app starts from a screen, so the first read happens when the instance opens; the criteria on the arrows use the fields above.

Start

A seller submits S01 for a customer, usually from a blocked order or ahead of a large quote. The instance then reads its rows from Salesforce through the handlers above.

What the app writes back

Through released interfaces

Writes go through the REST API (update and composite calls) under the integration user's profile and sharing rules. Each call returns the record ID or an error message, and the app records both beside the decision.

ObjectWhat changesInterface
Credit profilenew limit and valid-to date written to the credit profile; risk class updated when changedPATCH sobjects/Account
Sales order linecredit block released on the orders the new limit coversPATCH sobjects/Order
Acknowledged and logged

Each write stores the identifier Salesforce returns beside the decision, the person and the time, so the log answers who changed what, and the reconciliation shows it arrived.

Access and prerequisites

What is in place before the first build

Profiles, roles and sharing rules are mapped to Lima access policies once. A seller who sees their own opportunities in Salesforce sees the same rows in the app.

  • A connected app and integration user with API access and object permissions for the objects the app uses
  • Change Data Capture enabled on the objects that should refresh within seconds
  • Field-level security reviewed for the fields the app writes
  • Sharing model agreed with the sales operations owner
Register the handlers4 objects from the catalog; each shows its rows at once.
Nearby

This app on other systems, and other apps on Salesforce

Customer credit limit change on

Other apps on Salesforce

Terms on this page

ExposureEverything the customer owes or is about to owe: open invoices, deliveries in progress and open orders.
Credit blockThe hold the ERP places on an order when exposure would pass the limit.
Read in placeThe rows stay in Salesforce; the handler sends the filter and the columns and Salesforce returns the matching rows.
Questions

Does this app copy data out of Salesforce?

The screens read through handlers that leave the rows in Salesforce. History the app needs at scale is landed in the lake by the Backbone, which is the exception by design.

What does Salesforce need to allow?

The prerequisites above: an integration identity with read rights on the objects listed and write rights on the interfaces named, connectivity, and the scopes agreed with the process owner.

Can I run it on another system as well?

Yes. The screens, criteria and roles stay; the handlers are re-bound to the other system's objects, and the app's other system pages show them.

See this app on your data

Bring the process and the systems it touches. In the first session we register the data handlers, draw the levels or the lanes and run the first screen on your live rows.