How to get the corresponding JournalId for a specific Quarantine order?

I’ve already tried to link WMSJournalTrans and InventQuarantineOrder table using the InventTransId field, but the problem is how can I get the specific JournalId if there are multiple records with the same inventTransId, transDate and inventTransRefId in Item arrival journal?

Thank you in advance for your response! :slight_smile: