Get recordID from Portal
I want to get the record ID from a record i'm adding into a portal. The recordID is visible in the portal fields as a merge field but I want to use the value elsewhere in a variable as its saved. I've tried using the portals OnOnjectSave and OnObjectExit but they both look for the recordID to early. My script simply sets the variable using the table field then add it into a Custom Dialogue. As the portal row save the Dialgue does not comain the value, I close the dialogue, the portal refreshes and the new RecordID is displayed using the Merge Field. How can I catch the new record ID earlier?