cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Solution Supplier
Solution Supplier

SQL Data Type equivalent to Numeric SP column

I'm building a Flow in which I want to insert a row into a SQL database when an item is created in a SharePoint list.

 

I copied the schema from the SP list with any column that's Numeric in source SharePoint as an int column in destination SQL table.

 

When I try and match the dynamic content in Flow, the numeric columns are not available when an int column is selected in the Insert a row action:

image.png

This table is currently empty so it's not a problem changing the column's data types, or dropping it and re-creating it.

 

I know if I manually enter the dynamic content from the expression builder is works, the SQL server doesn't complain about the data type going in, it's just the Flow UI has decided that an int column in SQL it's not the same data type as the source SP list's Numeric column.

 

I also tried bigint and I get the same result.

 

What data type should I use to achieve this partity so I don't have to manually build the expressions? There are a LOT of numeric columns here..

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: SQL Data Type equivalent to Numeric SP column

 

Hi @WillPage ,

 

A seemingly cumbersome, but convenient way to do this is to use the Compose action.

When solving most of these problems, I always recommend that users first use Compose to get the specified Dynamic content, and then use Compose's output to configure other fields.

Please take a try.

 

In addition, please try to change the corresponding field type in the SQL table to float.

 

Best Regards,

Community Support Team _ Barry
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
Highlighted
Community Support
Community Support

Re: SQL Data Type equivalent to Numeric SP column

 

Hi @WillPage ,

 

A seemingly cumbersome, but convenient way to do this is to use the Compose action.

When solving most of these problems, I always recommend that users first use Compose to get the specified Dynamic content, and then use Compose's output to configure other fields.

Please take a try.

 

In addition, please try to change the corresponding field type in the SQL table to float.

 

Best Regards,

Community Support Team _ Barry
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
Solution Supplier
Solution Supplier

Re: SQL Data Type equivalent to Numeric SP column

@v-bacao-msft  Thanks Barry - float is the correct answer.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (5,585)