cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Richard-J
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
v-alzhan-msft
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
v-alzhan-msft
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

@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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,032)