The default country is the entry point of the flow, as it loads the offer catalog based on this attribute. It's also a mandatory attribute to successfully create an order as a country is required to assign tax and billing status. Currently, the default country is fetched from the customer record in limio, and this is set to the last used purchase country for an order.
In the flow, this action is performed by the apex class GetPurchaseCountry, that then passes the retrieved value to the offers screen.
The value being passed here could be replaced with any other value, omitting this step, in favour of a more appropriate value to use.
For example, instead of fetching the value from limio, the country value could be retrieved from a more pertinent attribute either on the case record itself or the related contact/account records.
Important: for the formatting of this value, use the 2 characters country iso code, e.g. GB for United Kingdom; do not pass the entire name of the country as it won't be understood by the offers screen.
Comments
0 comments
Please sign in to leave a comment.