instanceId is not showing in submission.update audit logs details

When I review a submission, in the audits table entry of that action I cannot see instanceId of the form that was reviewed.

This information is useful in this project.

I was looking at ODK source code and I think that this information should appear, but maybe I’m wrong. See this:

I tested using a clean instance of v2025.3.1. I cannot test using v2025.4.0 right now.

Ah, I see what you mean. When you review a submission, it uses the update function at the bottom of your screenshot (because it's only changing submission metadata, not the actual submission data.) I think line 165 is wrong and should have this instead:

instanceId: submission.instanceId

submission.def doesn't seem to have instanceId filled in at that point. This never worked for you, right?

We'll get this fixed in Central. One things to note, though: Keeping the schema of the audit details consistent and up to date is tricky for us, so I would try not to rely on it. It looks like this piece was never really tested.

Yes, this never worked for me. For now, I’m using submissionId to identify the updated submission (instead of instanceId) and fetching data.