cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JenVitug
Kudo Commander
Kudo Commander

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
v-xida-msft
Community Support
Community Support

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.

@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.

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (2,381)