Skip to main content

Export CSV using CreateFile?

Comments

1 comment

  • Alisa Lindley

    Hi Courtney,

    The output of a Query Layer activity is a whole object, meaning a CSV won't be able to handle it.

    In order to successfully generate a CSV, the Content property in the Create File activity will need to be formatted like a CSV (i.e. a string with commas delineating columns and line breaks separating rows). To do this, I would recommend using a Create Value activity and populating it with the desired feature attributes from the Query Layer activity. If you are dealing with a large amount of data, you may also want to make use of loops and Add Item activities.

    You can check the outputs of your activities in the Console tab of the browser dev tools, which can be opened by pressing F12 when running the workflow. Adding Log activities can help you check whether the expression you are entering is formatted correctly and is of the correct type for your purposes.

    I hope that helps!

    Alisa

    1

Please sign in to leave a comment.