Deleting a field in a business object that has been created via code


Hey all, I need to edit a field from a business object but can't seem to access the editing & deleting function ( In code I thought I could delete it and then recreated in in an MetaData initilization class, but 


removes the field from commerce manger but it doesn't remove it from the db so there's an error when recreating it after. This is fine on local, but surely there's an easier way.


Mar 04, 2019 12:29

I'd suggest to go with MetaClass.DeleteMetaField(MetaField), which not only removes the field from the MetaClass, but actually deletes it.

Mar 04, 2019 12:35