cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
WillPage Skilled Sharer
Skilled Sharer

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

WillPage Skilled Sharer
Skilled Sharer

Re: SQL Data Type equivalent to Numeric SP column

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

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,840)