when using the data assist insert record behavior, this is simple, the record ID is stored in a session variable. See the Session section of the insert record behavior interface. in the upload file behavior, click the lightning bolt next to file name and select the session created by the insert record behavior