I was exploring how we can change the default purpose of Address or Contact, by default the purpose is “BUSINESS” and i was having the requirement to default it to “INVOICE”. Unfortunately i did not find any functional way, i was hoping this should be configuration somewhere to change it.
regardless i have to debug the code and produce technical solution.
Luckily there is a class LogisticsLocationEntity exists and it has “delegate” that allows subscribers to write custom defaulting logics

i did check if there are any existing references of the delegate and happy to see some examples.

after small study i was able to find existing example, so basically the defaulting logic is working based on Table Id and i can see the existing implementation of subscriber class “LogisticsLocationEntityAppUtil”

*This post is locked for comments