cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JTischler
Regular Visitor

New excel attachment data auto import to an existing list

Hello,

 

I am very new to the Power Automate feature, this is my first attempt to use it.  I appreciate any help or feedback!

 

I am currently creating an automation that uses one of the templates.  This will take any attachment from an incoming email to a shared mailbox which then uploads the attachment (which will be excel) to a dedicated document library.  I want to expand the automation so that each time a new excel attachment appears in the doc library, the data from that excel sheet populates into an existing list, so that the SP list grows exponentially as the excel attachments are received.

 

This is a high level description of what I am after.  I would expect the excel sheets to all have same headers as a standard template is populated and then sent to a central mailbox.

 

From what I have seen with the get rows is that you have to manually select the workbook, vs it happening automatically.

 

Is what I am asking for a possibility?

Is this possible?

4 REPLIES 4
DamoBird365
Community Champion
Community Champion

Hi @JTischler 

 

Assuming you are happy that your excel files have a table, you can dynamicaly populate the file and table name as follows:

 

DamoBird365_0-1617641135513.png

In my example I have provided the File ID as a string in a compose, if you are using the trigger when a file is created, you can obtain the file ID that way. I have assumed that there is only one table present in the Excel File and obtain the table ID using the expression in compose 3 which calls the first record from the get tables action.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

JTischler
Regular Visitor

What are the various codes for the 3 outputs?  I am unsure of what points to where?  What would go in place of the 'body/value'? 

JTischler_0-1617716642299.png

JTischler_1-1617716691832.png

 

 

JTischler
Regular Visitor

@DamoBird365 I just realized I didn't tag you originally.  May you see the follow up questions and screenshots I provided please? Thank you so much!

Hi @JTischler 

 

I did miss your initial reply, apologies.  I don't undestand what you mean though.  Your get tables action is called get tables 2 and you would need to update that in your expression for the second compose action asyou call get table.

 

When you run the flow - what error do you get?

 

Can you share the history once you have corrected the above?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (27,567)