Need to execute the second scenario with data produced by first scenario

Welcome to the forum! :tada:

Unfortunately, there currently isn’t a way for two VUs to share information between them, much less a way to share information between two different scenarios. VUs also can’t write files, and you can read files only in the init context… The only way to achieve something like what you want at the moment is through an external service (e.g. a simple REST API that VUs in the first scenario call to store the data and VUs in the second scenario call to read it) or an xk6 extension (blog post).

Similar question asked before: Share data between two scenarios in K6