Upload data
Uploads data to Hypergene Portfolios for custom processing.

Example 
The example above illustrates how to upload project expenses from an Azure SQL database to Hypergene Portfolios. It uses the SQL Server Load to DataTable action to fetch data from the Azure SQL database, then creates a CSV file using Create CSV as stream and finally uploads the CSV file to Hypergene Portfolios using the Upload data action.
Properties
| Name | Type | Description | 
|---|---|---|
| Connection | Required | The connection to the Hypergene Portfolios API. | 
| Portfolio | Optional | When specified, overrides the Portfolio ID specified in the Connection. This can be a hard coded string, a variable or the Porfolio selected from the Portfolio picker in the property editor. | 
| Data | Required | The data to upload. This can be a byte array, stream, or string. If you provide a string, Flow will automatically convert it to a UTF-8 encoded byte array when uploading. | 
| Upload setting | Required | The name of the predefined upload setting in Hypergene Portfolios. This setting tells the Portfolios server how to handle the uploaded data. Select the desired upload setting from the list. If the list is empty, you must first define an upload in Hypergene Portfolios before uploading data using Flow. | 
Best practices using the Upload data action
When uploading data to Hypergene Portfolios using Flow, we recommend the following:
- Upload data in CSV format. Use the Create CSV as stream or Create CSV as byte array actions to create the CSV file from tabular or string data.
 - Use the following settings when creating CSV files to upload to Hypergene Portfolios. Note that these are the default settings used by Flow when creating CSV files, so you don't need to make any changes.
- Header row: 
true(default) - Column delimiter: 
, (Comma)(default) - Row delimiter: 
\r\n(default) - Quote character: 
" (Double quote)(default) - Quote all fields: 
false(default) - Date format: 
yyyy-MM-dd(default) - Number decimal separator: 
. (Period)(default) 
 - Header row: