Cancel Reasons

The cancel journey requires specifying a reason for cancelling. This is presented as a dropdown menu to choose from when performing the cancel action:

Screenshot_2022-08-18_at_11.52.28.png

The value set for the picklist is dynamically determined by the custom metadata value stored in the Subscription Action metadata of ic Assist Config

mceclip0.png

Values being rendered are listed in the cancelReasons array, and then retrieved in apex by the class "Get Cancel Reasons" and then stored in the flow variable CancelReasons.

mceclip1.png

The CancelReasons flow variable is of type list of i42as__PicklistChoice.

If cancel reasons are stored somewhere else, it's possible to replace this apex action with another custom action, as long as the results are of the same type i42as__PicklistChoice and then stored in the flow variable CancelReasons. The Cancel Screen flow element will read this value and render the list dynamically.

A reason for cancelling is mandatory when performing a cancel action. The values displayed can be customised and maintained by a Salesforce admin by editing the cancelReasons array within the ic Assist Config custom metadata (Subscription Action entry). Subsequent releases of the Limio for Salesforce managed package will not overwrite these values, as the metadata is designed to be user-overridable.

Last updated

Was this helpful?