You could try and maybe get a hint from this video. I think the principal is the same as what you want if I understand you correctly. The redirect page would be your second form instead of a details page.
Another way (I haven't tried this) might be to use a global variable and set it to the new id in your server action. And. then on your second form, bind the value of a hidden field to the variable?