cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JenVitug
Level 8

Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

HELP, I have been perplexing over this simple step in my FLOW and i need to make this work ..

 

1. i have a trigger :  When a file in created in SharePoint (the expected created file is an excel file)

2. Get Rows in Excel , then For each row in the Excel file  I  need to create a Record in Common Data Source Entity

3. All fields in the CDS entity are available in the Excel file (as i have used Export Template to Excel from the custom CDS entity)

4. For non-Numeric fields in my CDS entity, i can dynamically match them to the input Excel file's columns

5. However for NUMERIC fields in CDS entity, nothing shows up for me to choose for dynamically updating the CDS numeric field . (i.e. the Get Rows outputs is not even displayed ! )

 

Flow No matching format from Excel table to update CDS field.JPG

3 REPLIES 3
Community Support Team
Community Support Team

Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

Hi @JenVitug,

 

Could you please expand the "List rows present in a table" action within your flow?

Do you use the "List rows present in table" action to retrieve rows from the new file created in your SharePoint library (use the "When a file is created in a folder" trigger to detect)?

Further, could you please show a bit more about your Excel file?

 

If you use the "List rows present in table" action to retrieve rows from the new file created in your SharePoint library (use the "When a file is created in a folder" trigger to detect), I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

Specifying a file dynamically is not supported in the "List rows present in table" action of Excel Online (Business) connector, you could only specify the file through File Browser.

 

I have made a test and the issue is confirmed on my side. If you could dynamically match Excel file's columns within the other non-Numeric fields of the "Create a new record" action, you could take a try with the following formula to reference the Number column in your Excel file:

 

item()?['NumberColumnNameOfYourExcelFile']

 

I have made a test on my side and please take a try with the following workaround:2.JPG

Note: The Amount column is a Number type field in my CDS entity. on your side, you should type the following formula within the Number field (YTD Actuals field):

 

int(item()?['YTD Actuals'])

The value you get from your Excel table is text value, you should convert the text value into number value to match the Number field of your CDS Entity as above formula. 

 

 

 

More details about using expression in flow actions, please check the following article:

Use expression in flow actions

 

 

 

Best regards,

Kris

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JenVitug
Level 8

Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

@v-xida-msft  I will try your workaround to extract the number column from the excel Get Rows using your expression and get back to you . thanks in advance.

JenVitug
Level 8

Re: Cannot Dynamically update CDS number field from an Excel table when the excel column is a number

hi @v-xida-msft,

I have tried your recommended step to create expression to extract the excel numeric fields to update my CDS Entity numeric field

 

It only worked for 1 column,  the rest of the excel numeric columns when used in the function  INT 

example 

Int(items('Apply_to_each')?['YTDActuals'])
 
returns to me this runtime error : 
 InvalidTemplate. Unable to process template language expressions in action 'Create_a_new_record' inputs at line '1' and column '2353': 'The template language function 'INT' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
this is my excel file 
 
i'd like to send you a sample row from my excel file:
 
 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 244 members 4,034 guests
Please welcome our newest community members: