LFS version requirement: requires Limio for Salesforce version 11.68 or later.
When looking at a subscription that is a gift purchase, details of whether the gift might be redeemed, and redemption related details, aren't available at subscription level.
In the Limio for Salesforce Manage Subscriptions flow, there is a flow apex action that takes the subscription id as an input and, if it's a gift purchase, returns in a custom apex object the following information:
- isRedeemed
- redemptionStatus
- giftCode
- redemptionDate
- expiryDate
- subscriptionId
- accountId
- contactId
This is implemented by the global apex class 'GiftRedeemerDetails' in the Limio for Salesforce category
The only field that needs to be mapped as input for the selected action is the subscriptionId, that needs to contain the identifier for the gift purchaser subscription.
This class will then output an apex class of type i42as__GiftRedeemer, and its parameters can be used elsewhere in the flow as variable for building custom text, or for building a custom lightning web component displaying this information in a purpose built layout.
Comments
0 comments
Please sign in to leave a comment.