Loading
About Digital Wallet
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Change a Consumption Threshold for a Specific Card

          Change a Consumption Threshold for a Specific Card

          Learn how to configure the Digital Wallet Consumption Threshold Alerts flow to only send notifications when a specific card reach a certain usage threshold.

          Required Editions

          User Permissions Needed
          To activate or modify the Consumption Threshold Alerts flow: Manage Flow user permission

          Find the Card Definition Developer Name

          1. Click View Consumption Details for the desired card.
          2. In the page URL, look for c__card=YourCardDefinitionDeveloperName. See an example below.
          3. Now follow the instructions in Assign a New Decision Outcome and Conditions.
          Example
          Example

          In the URL below, the card definition developer name is PlatformServicesCard:

          https://myorg.lightning.force-com/standard-ConsumptionCards?c__view=cardDetail&c__card=PlatformServicesCard&c__env=Production&c__model=PrePurchased

          Assign a New Decision Outcome and Conditions

          1. Ensure that you complete the steps above in Find the Card Definition Developer Name.
          2. Create a new flow with the Consumption Threshold Alerts template or open an existing Consumption Threshold Alerts flow to edit it.
          3. With the flow open, click the Check Card Conditions element in the flow itself or click the element in the toolbox in the side panel to edit it.
          4. Create a new decision outcome. Give it a name based on the type of card you’re targeting, such as "Data Cloud Card." Salesforce recommends that you don't remove the existing decision paths.
          5. In the Order Outcome sidebar, move the new decision outcome above the existing ones. This gives it the highest priority.
          6. In the Outcome Details pane, add conditions to check for the desired card definition developer name.
            1. Set Resource to Current Item from Loop Cards > cardDefinitionDeveloperName.
            2. Set Operator to Equals.
            3. Set Value to the single card definition developer name.
            4. Repeat for each card you wish to target. If you’re adding more than one condition, you’ll need to change Condition Requirements to Execute Outcome to Any Condition is Met (OR).
            5. Return to the main Flow Builder pane.

            Shows steps 4, 5, and 6

          7. Add an assignment element to your new decision branch. This will be used to set the AlertTriggerType variable.
            1. Click the + under your new decision branch. Select the Assignment element type.
            2. In the edit pane, go to Set Variable Values.
            3. Set Resource to AlertTriggerType.
            4. Set Operator to Equals.
            5. Set Value to the desired AlertTriggerType.

              If you want to send an alert when a percentage of the consumption card has been consumed, such as 60%, use the AlertTriggerType_ThresholdPercent constant.

              If you want to send an alert when a raw consumption value has been reached, such as 100,000 credits, use the AlertTriggerType_ThresholdUnits constant.

            6. Name the element appropriately.
          8. Add another assignment element immediately following the one you just created.
            1. Click the + under your previous assignment element.
            2. Select the Assignment element type.
            3. In the edit pane, go to Set Variable Values.
            4. Set Resource to ThresholdValues.
            5. Set Operator to Add.
            6. For Value, enter the desired threshold value to alert on, as an integer.
            7. Repeat for as many thresholds as you wish to add.
            8. Name the element appropriately. See an example below of a flow with a new decision branch added.

              View of the completed flow

          9. To keep your changes, click Save.
            The original flow template stays the same.
          10. To start notifications, click Activate.
           
          Loading
          Salesforce Help | Article