cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

New User trying to create a CSV - Creating a CSV from a List of Projects stored in Harvest using the connector

Hi,

Am new to Power Automate and finding my feet with it so apologies if the post doesn't make sense.

 

I'm trying to create a scheduled flow which connects to Harvest to return a list of Projects that I'm trying to store as a CSV file on a network drive.

 

I used the Harvest example provided which generates an HTML table which is emailed to me - this works ok so I know the connection and data retrieval is good.

 

Creation of HTMLCreation of HTML

 

I tried to replace the 'Create HTML Table' step with a 'Create CSV Table' step as shown.

 

Creation of a CSV (Attempt)Creation of a CSV (Attempt)

 

However, I get an error 'BadRequest. The 'from' property value in the table action inputs is of type 'Object'. The value must be of the type 'Array'. 

 

ErrorError

 

Watching some YouTube videos suggested I need to Create an Array first using the 'Initialise variable' step.

 

Question about next stepQuestion about next step

 

The questions I would appreciate help with are :

1) Is the Initialise Variable Step the correct approach?

2) What would I enter for the 'Value' field of the Initialize Variable?

3) Are the following steps likely to work or am I on the wrong track?

 

A) Recurrence - to establish a schedule to create the csv file

B) List Projects - to obtain the information from Harvest

C) Initialize Variable - to define the array

D) Create CSV Table - to generate the content retrieved from Harvest as a csv table

E) Create File - to save the csv onto a network drive

 

Thanks for any assistance,

Cheers,

Richard

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Richard-J ,

 

You need to remove the Apply to each then the flow should work.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Richard-J ,

 

You need to remove the Apply to each then the flow should work.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

Highlighted

@v-alzhan-msft  Thank you for the help - Appreciate you taking the time to respond.

 

I'm very happy to see 4 green ticks on the flow 🙂

 

Happy DaysHappy Days

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,849)