Sandbox build ยท Salesforce, Experience Cloud, Lightning web components

A Salesforce partner portal with conflict checks, 48-hour leads and partner data kept apart

A Salesforce partner portal that flags deal conflicts, times out unanswered leads and keeps each partner's data apart.

A Salesforce partner portal with conflict checks, 48-hour leads and partner data kept apart

  • The bottleneck

    Two partners chase the same customer and both expect to be paid. Channel managers spend their days in email deciding who registered a deal first. A lead sent to a partner sits unanswered for a week. Commission is worked out in a spreadsheet at quarter end, so partners cannot see what they have earned and argue the numbers. Every shared spreadsheet or login risks a partner seeing a rival's customers.

  • The fix

    I built the portal as an Experience Cloud site in a free Salesforce scratch org, with a review page where channel managers press Approve or Reject. Register a deal warns, before anything is saved, when the customer's domain or company name matches an open opportunity or another registration. One click on Approve makes the opportunity and protects the deal for 90 days. A lead offered to a partner has 48 hours to be accepted. If it is not, an hourly job marks it Timed Out, removes the partner's access, keeps the history and puts the lead back in the queue. A won deal gets its commission at the partner's tier rate, with a higher rate only on bookings above the quarter's threshold. The partner sees how each commission was worked out.

  • What changes

    In the scratch org, all 64 live acceptance cases passed in each of three full runs. Among them, two partner users at two companies were checked both ways: each saw its own deals and commissions, and none of the other's. In the demo, a Silver partner with $220,000 booked that quarter won a $60,000 deal and earned $6,000: 8 percent on $30,000 and 12 percent on the $30,000 above the $250,000 threshold, pending approval by Channel Ops. In the free org, only one partner user's licence can work leads. Protection expiry and tier changes are checked by code tests only.

    Safeguard: Each portal action reads the partner's company from the database, so a partner cannot reach a rival's data by changing a request.

A Salesforce partner portal with conflict checks, 48-hour leads and partner data kept apart

What I built

Salesforce, Experience Cloud, Lightning web components, Scheduled jobs

The partner's Commissions page: $6,000 for Lyngby Transport ApS pending approval by Channel Ops, and a panel showing it worked out as $30,000 at 8 percent up to the threshold and $30,000 at 12 percent above it.

Product names and logos belong to their owners. Privacy