Loading
Partner Cloud
B2B Referral Management Flows

B2B Referral Management Flows

B2B Referral Management uses flows to automate the tracking of referrals and rewards throughout the lead and opportunity lifecycles. These flows handle event processing when leads are created or converted and when referred opportunities are won.

Required Editions

Available in: Lightning Experience
Available in: Sales Cloud Enterprise Edition (or above) with Partner Ecosystem Management (Member or Login), Partner Community, and External Apps licenses.

B2B Referral Management includes these flows:

  • Process Opportunity Won Referral Event: Updates referral and reward records when an opportunity is closed as won.

  • Process Partner Referral Code: Processes referral codes for new or converted leads.

Process Opportunity Won Referral Event

The Process Opportunity Won Referral Event flow (API Name: partner_b2brfrmgt__ProcOpptyWonRefEvt) triggers when an Opportunity record is created or updated. It calls an invocable action to create and update referral and reward records when a referred Opportunity is won.

Element Label API Name Description
Process B2B Closure Event ProcessB2BClosureEvent Action element. Processes a B2B referral event of type Closure by calling an action and passing in the referral code, account ID, current date and time from the triggering Opportunity record.
Get Referral Record GetReferralRecord Get Records element. Gets the referral record with an OpportunityId that matches the ID of the triggering opportunity.
     
Update Extended Reward UpdateExtendedReward Update Records element. Updates the Extended Reward record with an AccountId that matches the ReferrerId of the Referral from the GetReferralRecord record variable.
     

Process Partner Referral Code

The Process Partner Referral Code flow (API Name: partner_b2brfrmgt__ProcPartnerRefCode) processes the referral code for lead records with a Lead Source of Partner when they are created or updated.

Element Label API Name Description
Check Lead Status LeadStatusCheck Decision element. Evaluates whether the Lead is New or Converted and directs it to the appropriate path.
Process B2B Converted Event ProcessB2BConvertedEvent Action element. Uses values from earlier in the flow to set the inputs for the "Process B2B Referral Event" core action.
Process B2B Referral Event ProcessB2BReferralEvent Action element. Sets the inputs for the "Process B2B Referral Event" core action using values from earlier in the flow.
 
Laster
Salesforce Help | Article