0 Replies Latest reply on Feb 13, 2019 2:12 AM by Mohit Kumar

    Entity Post Adder

    Mohit Kumar Active Member

      Hi

       

      I am using EntityPostAdder operator on VariantReference. So If any new created item gets assigned to variant than it calls the PostAdder.

       

      So the problem is when I add any item to variant manually than the code is giving me the Item Internal id but when I do the same thing through import perspective than Item Id is NULL. See the below code. I am not able to understand why ItemId is NULL while importing the Item ?

       

           final EDataObject rootObject = commandContext.getRootDataObject();

          Short entityId = commandContext.getRootEntity()

                                         .getEntityId();

          Long itemId = rootObject.getLong( "id" ); //$NON-NLS-1$

          EntityProxy catalogProxy = ( EntityProxy ) rootObject.get( "catalogProxy" ); //$NON-NLS-1$

       

       

          EntityProxy itemProxy = getItemProxy( itemId, entityId, catalogProxy );