We have a way in the framework to get from natural key to primary key, a la
`var fromUnitPrimaryId = fromUnitId ? XT.Data.getId(XT.Orm.fetch('XM', 'Unit'), fromUnitId) : null;`