Coupon Extensions
The Coupon Extensions addition provides the means to extend the functionality of the base Nimble AMS product coupon creation and validation.
This feature is one of our Support Enabled Features; if you are interested, reach out to Nimble AMS Support with your request and more information.
After Coupon Extensions have been enabled, you gain access to the following fields:
Coupon Rule.MaxUsesPerAccount__c
Coupon Code.AccountRestriction__c
These fields will enable you to use either the standard coupon validators or custom validators to restrict coupon use.
Post Enablement Process
- Create the CouponUnlimited and CouponAccount queries.
- In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.
- Search and select Queries.
- Click New.
- Use the information listed in the SOQL snippets below to fill in the required fields.
From Setup, in the Quick find box, search and select Installed Packages.
Click
Configure
next to Nimble AMS.Specify the queries in Coupon Validation Settings, by setting
Additional Coupon Validation Queries
field to CouponAccount, and theCoupon Validation Query Override
field to CouponUnlimited.- From Setup, provide access to the
MaxUsesPerAccount__c
field on the Coupon Rules object and theAccountRestriction__c
field on the Coupon Codes object and add these fields to page layouts as needed. - From the Coupon Rules object, add the following picklist values to the
Validator Class
field:- MultiUseCouponRuleValidator
- MemberCouponRuleValidator
- SingleAccountCouponRuleValidator
- Any existing or future coupons that need alternate rules can now be configured by populating the
Max Uses Per Account
,Account Restriction
, andValidator Class
fields.
Coupon Extension Validators Included In This Feature
Apex Class | Purpose |
---|---|
MultiUseCouponRuleValidator | Defines validation logic for coupons that can be redeemed more than once by each account. |
MemberCouponRuleValidator | Defines validation logic for coupons that can be redeemed only by member (BillTo) accounts. |
SingleAccountCouponRuleValidator | Defines validation logic for coupons that can be redeemed by a single specified (BillTo) account. |