How to get response in POST_PROCESS script



I want to create a record, get the ID from that inserted row, and then create another record in a separate table using the id.

To do this I am creating a POST_PROCESS script.

How do I get the ID result from the inserted record?