Scenario
GlobaTech, a fast-growing SaaS provider for supply chain automation, operates globally with sales teams and customers across North America, Europe, and APAC. Pricing is maintained in USD, but clients often request quotes in their local currencies (EUR, GBP, AUD, etc.).
Previously, reps manually adjusted currency conversions or referenced internal spreadsheets. This created:
- Inconsistent exchange rates across quotes
- Manual errors in pricing
- Discrepancies between DealHub proposals and Salesforce CRM records
To solve this, GlobaTech leverages Salesforce’s Manage Currencies feature and integrates it directly with DealHub to automate currency conversion in real-time using the exchange rates stored in Salesforce.
Solution Overview
Using DealHub’s external object integration capabilities, GlobaTech implemented a seamless way to:
- Automatically pull the customer’s currency from the Salesforce Opportunity.
- Query Salesforce’s CurrencyType object to fetch the correct exchange rate.
- Apply that exchange rate in DealHub to update pricing dynamically—ensuring currency conversions are accurate and aligned with Salesforce configuration.
Solution
- In Advanced Settings -> Salesforce Settings, add the following field to the mapped fields list:
- Opportunity.CurrencyIsoCode
- In your playbook, add the following 2 questions:
- In General Questions rGQ]:
- Id: CurrencyISO_SF
- Question: dHIDDEN] CurrencyISO_SF
- Answer: Salesforce Text List, choose Opportunity.CurrencyIsoCode
- Notes: Make this question read only and hidden
- In General Questions rGQ]:
- Id: CurrencyTypeConversionRate
- Question: dHIDDEN] Conversion Rate
- Answer: Numeric Answer Min 0, Max null, Default 0, Stepping 0.00001
- Notes: Make this question read only and hidden
- In General Questions rGQ]:
- Build the following query in Advanced Settings -> Manage External Objects:
SELECT IsoCode, ConversionRate, IsActive
FROM CurrencyType
WHERE IsoCode = 'PLAYBOOK(GQ.CurrencyISO_SF)' AND IsActive = true
*NOTE: After copy/pasting the query above into Dealhub, replace the ‘ in the WHERE clause with new quotes from your keyboard. Dealhub needs straight quotes not curly ones like this: ‘
- Return to your playbook and go to the question group where you created the 2 questions from step 2. Click on Settings, then Integrate External Object. You don’t need to show the external object button but you DO need to run it automatically.
- Click on Version Settings -> Price Factors -> Currency. Add the currencies that will be in use. Under the exchange rate spot, link the second question created in step 2: tGQ.CurrencyTypeConversionRate]