Search code examples
intershop

Get AddressPO from an AddressBo object


I have an instance of an AddressBO in my code and i want to get corresponding AddressPO without using the AddressPOFactory. Is that possible ?

Thanks


Solution

  • In java code try following:

    addressBO.getExtension(PersistentObjectBOExtension.class).getPersistentObject()
    

    In pipeline/ISML:

    AddressBO:Extension("PersistentObjectBOExtension"):PersistentObject