Starting in May 2025 with Einstein Requests and Flex Credits, Digital Wallet supports the tracking of Sandbox usage directly from the Production card in Digital Wallet. As part of this, all new usage, whether from sandbox or production, will route to the production card. Customers will be able to break-down usage by Production or Sandbox through the Digital Wallet Consumption Cards UI.
Digital Wallet currently provides out of the box usage threshold alerts (public docs). The out-of-the-box consumption alerts provided by DW operate on the total card balance. They do not support notifying based on sandbox-only or production-only usage, and they cannot be customized to do so.
This guide outlines potential solutions for customers who need environment-specific usage alerts. These are interim recommendations until the Digital Wallet product team delivers enhancements.
Note: This is not an official Salesforce solution but a customer-implementable workaround.
Flow Implementation
Customers can implement the following flow to calculate the total number of sandbox credits that they have consumed, and then perform actions based on a desired threshold.
Note: You can can find the video here.
Note for Customers that were migrated through the Data Cloud Sandbox to Production Merge
In June, Data Cloud Sandbox SKUs will be merged with production SKUs. As part of this change:
- All usage and entitlements will migrate from the sandbox card to the production card.
- All new usage—whether from sandbox or production—will route to the production card.
See more at DC Sandbox Migration – User Experience.
These customers can use the flow as well, but must account for the following:
A TenantEntitlementTransaction TET record reflecting the total sandbox usage merged to the production card during the DC Sandbox migration. This TET record can be identified by going to the Data Cloud Query Editor and running the following query:
SELECT SUM(Quantity__c)
FROM TenantEntitlementTransaction__dll
WHERE entitlementtransactionsubtype__c = 'Adjustment'
AND entitlementcarddefdevlname__c = {your_card_name}
AND businessenvtype__c = 'Sandbox'Once you have this record, you can add the value to the TotalCreditsUsed variable of the Flow to have an accurate number of total sandbox credits consumed.
In the flow, rather than looping through the results, it’s more efficient to use the Transform element to calculate the sum
Justin is great!