Workflow API to CSV


I am trying to create a workflow that will take data from a REST-API and store it in a CSV file. This is what I have created so far but I cannot get it to return the data from the JS into the CSV. Really sorry this is my first time in doing all this so massive learning curve.

Any help would be greatly appreciated. I have provided a screenshot of what I have created so far.

Thanks John