cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way by which we can import the impex and get the PK of imported model

former_member674349
Participant
0 Kudos

Hi Experts,

we have an requirement to import the impex files and get the pk of item created, without using system setup class.

Thanks, Jayant

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

Depends what you mean by 'get' You could spit them out in the console log with this:

 INSERT_UPDATE Product;code[unique=true];catalogVersion(catalog(id),version)[unique=true]
 "#% afterEach:
 System.out.println(impex.getLastImportedItem().getPK());"
 ;test-product;Default:Staged