TreyT
Windmill3mo ago
1 reply
Trey

Unable to pass the global results object to inline script

Attempting to pass the global results object for a flow into an inline script, but the value of the argument is empty.

Inline python script:

def main(results: dict[str, Any]):
    return results # this returns an empty dict. Expecting it to return all of the results collected during flow run.


When i click on the 'In' tab at the bottom of the inline script flow chart block, it shows all of the results data, but when i click on the 'Out' tab, it shows {}.

Not sure if this is intended behavior or a bug.
Was this page helpful?