Are you working with the API or in AL code.
If it is in AL Code you need to prove i primary key that match a record in the table.
In Item journal line you will have to do
ItemJournalLine.get("Journal Template Name", "Journal Batch Name", "Line No."); and replace the 3 key field with the value from the record you want to get.